Dart-Code: After running 'flutter pub get', dart analyzer crashes in code
Describe 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)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (11 by maintainers)
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).