IssueRaiser

Dart Analyzer very slow/stuck

Dart & Flutter has suddenly become unusable slow in VSCode. Intellisense won't load within 30+ seconds, syntax highlighting won't update, jumping to code definitions loads infinitely, etc. This seems to be especially the case on bigger projects, on a newly created project it works fine. I tried switching to Android Studio which seems to behave similarly (maybe a little better). I tried uninstalling all extensions, even completely removing VSCode with any data stored and reinstalling it. As soon as I install the Dart extension, it is unusable. I also tried setting the following settings: "dart.previewLsp": true, "dart.useLegacyAnalyzerProtocol": true, "dart.useLsp": false, "dart.autoImportCompletions": false, I'm on macOS 14.4, VSCode Version 1.87.2 (Universal), In the Activity Monitor, there is the `dart:analysis_server.dart.snapshot` process running with around 1 GB of used memory. I'm not sure if this is normal. Here is a screenshot from the Dart Analyzer (which I'm also having trouble opening) ![Screenshot 2024-03-22 at 20 47 42](https://github.com/dart-lang/sdk/assets/38528004/0f8b413a-1999-4ddc-8619-31ab78220cdf) `dart info` output: #### General info - Dart 3.3.2 (stable) (Tue Mar 19 20:44:48 2024 +0000) on "macos_arm64" - on macos / Version 14.4 (Build 23E214) #### Project info - sdk constraint: '>=2.17.0 <3.0.0' #### Process info | Memory | CPU | Elapsed time | Command line

Posted by JonasJW on Mar 22, 2024, 8:52 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

ux (Software)

Dart Analyzer very slow/stuck

JonasJWMar 22, 2024, 8:52 PM

Dart & Flutter has suddenly become unusable slow in VSCode. Intellisense won't load within 30+ seconds, syntax highlighting won't update, jumping to code definitions loads infinitely, etc. This seems to be especially the case on bigger projects, on a newly created project it works fine. I tried switching to Android Studio which seems to behave similarly (maybe a little better). I tried uninstalling all extensions, even completely removing VSCode with any data stored and reinstalling it. As soon as I install the Dart extension, it is unusable. I also tried setting the following settings: "dart.previewLsp": true, "dart.useLegacyAnalyzerProtocol": true, "dart.useLsp": false, "dart.autoImportCompletions": false, I'm on macOS 14.4, VSCode Version 1.87.2 (Universal), In the Activity Monitor, there is the `dart:analysis_server.dart.snapshot` process running with around 1 GB of used memory. I'm not sure if this is normal. Here is a screenshot from the Dart Analyzer (which I'm also having trouble opening) ![Screenshot 2024-03-22 at 20 47 42](https://github.com/dart-lang/sdk/assets/38528004/0f8b413a-1999-4ddc-8619-31ab78220cdf) `dart info` output: #### General info - Dart 3.3.2 (stable) (Tue Mar 19 20:44:48 2024 +0000) on "macos_arm64" - on macos / Version 14.4 (Build 23E214) #### Project info - sdk constraint: '>=2.17.0 <3.0.0' #### Process info | Memory | CPU | Elapsed time | Command line

Comments (0)

No comments yet. Start the discussion.

Comment on this issue