-
Notifications
You must be signed in to change notification settings - Fork 1.7k
The Dart Analysis Server server crashed 5 times in the last 3 minutes. #47617 #51455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@DanTup I can't tell from the output above what the problem might be. Unless it's enough information for you, can you provide instructions about how to get more information? (If we don't already, we should really have this written up somewhere on |
I suspect this comment from @srawlins is probably accurate/relevant here:
Setting the @devnoaman if not, are you able to reproduce this in a simple project that can be shared that I could debug with? |
Good afternoon A similar problem arose Arises in all projects: existing and only created We tried changing channels, downgrade version, installation FVM - nothing helps. (( |
@Neikan are you able to capture a log file (see my comment above)? Can you also confirm exactly what version(s) of the SDK you're using? A recent issue at Dart-Code/Dart-Code#4407 has the same symptoms with a parsing failure when the |
@DanTup
I tried versions:
I tried to capture a log, but the problem did not become clearer A little later I want to try to create a new user on the computer and try to set up the entire environment from scratch I don't have any other ideas.( |
@Neikan thanks, in your log I see this:
The path keeps growing with the "components" section being repeated:
This issue has come up at #50613 and Dart-Code/Dart-Code#4037. Deleting the |
@DanTup Thanks a lot! |
@devnoaman are you still seeing this issue? Are you able to capture a log as noted above (#51455 (comment))? |
after upgrade flutter version, the issue is solved. |
On Windows, I deleted both the ".dart" & ".dart-tool" folders in %appdata%\Roaming and it fixed the issue. |
堆栈溢出 ,你把vscode的内存调大一点 就可以了 |
After 2 hours, I tested everything that came to my mind and it didn't work. I checked another project and saw that there was no problem. After checking, I realized that the problem is in the following lines.
after removing this line problem solved
LSP
|
@mrtnetwork thanks for the sample - I can reproduce that on the current stable and it's the same issue as described in #53075 which has been fixed in ba1988e for a future SDK release. (FWIW the code is invalid - you can't call functions inside asserts of |
### Connection to server got closed. Server will not be restarted. (Source: Dart) While using VSCode with the Dart SDK, I encountered the error message "Connection to server got closed. Server will not be restarted. Source: Dart." This issue indicates that the Dart analysis server has unexpectedly stopped and will not restart. Steps to Reproduce: Open Visual Studio Code. Actual Results: After this issue occurs, the Dart analysis server stops running and does not restart. This results in the loss of code analysis and error highlighting features. |
@MaharramovZiya please open a new issue, comments on old closed issues are easily missed. If you can enable the analyzer instrumentation log (see https://dartcode.org/docs/logging/#analyzer-instrumentation), it may record an exception that will help understand why the server is terminating - please include that exception in your new issue (note: the log will contain parts of your source code, so just look for the exception). Thanks! |
i have used riverpod_lint with custom_lint and after activating custom lint , the server get crashed many times , i've tried to remove the packages and deactivate the custom linter then force update flutter sdk but nothing changes , here is the log of the analysis server :
The text was updated successfully, but these errors were encountered: