After running 'flutter pub get', dart analyzer crashes in code
See original GitHub issueDescribe the bug
When you run flutter pub get
, the dart analyzer crashes (problem count tab goes to 0), then it (sometimes) will restart itself, but other times I have to manually restart the extension host which involves shutting down my current debug session, restarting extension host, and doing another full build to run it again.
To Reproduce Steps to reproduce the behavior:
- Run flutter pub get
- Observe the problems window disappear
Expected behavior Analyzer shouldn’t crash.
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
- VS Code version:
Version: 1.56.0-insider
Commit: 7ce1499d9541ba2acf66cd30a9054bd7818a8f80
Date: 2021-04-22T05:12:09.510Z (6 hrs ago)
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Darwin x64 20.3.0
- Dart extension version:
3.21.1
- Dart/Flutter SDK version:
Flutter 2.2.0-11.0.pre.180 • channel master • https://github.com/flutter/flutter.git
Framework • revision 71cb40f46a (2 days ago) • 2021-04-20 14:19:02 -0400
Engine • revision 79c5ebe835
Tools • Dart 2.14.0 (build 2.14.0-18.0.dev)
Issue Analytics
- State:
- Created 2 years ago
- Comments:25 (11 by maintainers)
Top Results From Across the Web
dart analysis server terminated vs code - Stack Overflow
3: The Dart Analyzer has terminated. So far, I have tried numerous solutions which include downgrading flutter version to 2.8.1, 2.5.0. I have ......
Read more >Announcing Dart null safety beta - Flutter - Medium
To experience this, try to create a small null-safe hello app (for example, using dart create ) containing code like shown below. You...
Read more >dartdoc | Dart Package - Pub.dev
A non-interactive HTML documentation generator for Dart source code.
Read more >Flutter 1.12.13 release notes
45124 Analyze dartpad ... 42808 Run flutter pub get before pod install in ... 2186 Run clang analyzer on iOS and macOS code...
Read more >Has the Dart analyzer become very bad? : r/FlutterDev - Reddit
I feel like it got bad when I enabled LSP mode, but I could very well be ... I use VS Code, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, before semantic tokens a lot of stuff was left uncoloured. Now, variables (etc.) are coloured by the theme (which usually makes them different to uncoloured things like parens and operators).
If you want to change them back to white (or anything else), you can customise them in your theme settings (see https://github.com/Dart-Code/Dart-Code/issues/3168#issuecomment-787832710).
Since this has been reported in Android Studio too, let’s close this one in favour of the SDK issue at https://github.com/dart-lang/sdk/issues/45996.