dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

Sometimes getting `The analysis server shut down unexpectedly` when running `dart analyze .` #49272

Open nilsreichardt opened 2 years ago

nilsreichardt commented 2 years ago

The FlutterFire CI (using GitHub Action) has sometimes the problem that the analysis crashes:

The analysis server timed out while shutting down.
No issues found!
The analysis server shut down unexpectedly.
Please report this at dartbug.com.

Running dart analyze . --fatal-infos in the monorepo not concurrently (melos exec -c 1 -- dart analyze . --fatal-infos) has a chance of 0.1% - 1% of getting this issue. Increasing the concurrently parameter also increases the chance of crashing the analysis server dramatically. Using melos exec -c 5 -- dart analyze . --fatal-infos has a 10% chance of getting this error.

The FlutterFire CI is running with GitHub Action on ubuntu-latest. The Dart version is v2.17.3.

OMKAR1022 commented 1 year ago

The "analysis server shut down unexpectedly" error in Flutter. I have also tried flutter clean but that did not work.

how to solve this error