Analyzer slow, broken, results in managled AST, incorrect error messages, etc... #50670
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Dart Analyzer is getting worse and worse, taking longer and longer to complete and results in broken AST, mangled code, mis-colored structures, etc...Made a screen cast to see it in action. Events occur in real time.
In the video, I have two
Text
Widgets as placeholders that I change toMaterialButton
widgets, surround withExpanded
widgets. I then move to refactor theMaterialButton
widgets into a new widget,MyIconButton
and you can watch it all fall apart in the process. The end result is a broken AST where the syntax highlighting changes based on cut/pasting widgets and properties and dart messages showing errors/improper properties that aren't even there. Happy to show logs/diagnostics of everything I have, but this is an issue that continues to pop up over and over and over in the latest SDK. It's causing a great deal of frustration and actively slowing development. Quick-fixes will often break my code by injecting import statements directly into the middle of other import statements, making suggestions for things that don't exist, re-naming incorrect sections of code, or just taking anywhere from 5 to 30 seconds to update the AST breaking all code refactoring/fixes until the new AST is completed.Workstation is a Pop_OS linux with upgraded drivers on an i9-9980XE, 64GB of Ram, latest version of Android Studio Dolphin 2021.3.1 Patch 1 and latest Flutter/Dark SDK's.
logs.zip
The text was updated successfully, but these errors were encountered: