-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
VSCode Dart Extension "An error occurred while handling initialized notification" #56577
Comments
Summary: The Dart extension in VS Code (1.92.2) intermittently stops working after upgrading to Flutter 3.24.0. The issue manifests as missing syntax errors, broken command+click functionality, and an "An error occurred while handling initialized notification" message in the developer tools console. Downgrading to Flutter 3.19.6 resolves the issue, but it reoccurs upon upgrading back to 3.24.0. |
@erindolson are you able to enable the analyzer instrumentation log for your project (in workspace settings / Can you also confirm:
|
Thanks for the response
instrumentation log:
Downloaded the default flutter app and the dart extension did work - probably something I should've checked before making this bug, sorry about that. I can try an older branch and see what happens.
Just double checked and I do not as far as I can tell
I am on Dart v3.94.0. No experimental flags. |
Thanks - the log file does contain the complete error. It looks like there may be something invalid in your You can probably resolve the issue by identifying what's wrong in the
|
Thank you!! I found what was wrong in my analysis_options.yaml. I had
Rather than
Thanks again for all your help and patience! |
Great, glad it was an easy fix and thanks for the test case :-) |
Since it's a different stack trace to those other errors, let's keep this one open for now to ensure both issues get fixed. |
After upgrading to flutter 3.24.0, the Dart extension on VSCode (1.92.2) stops working often (won't show syntax errors, command + click no longer works, ...). The only way I am able to fix this is by downgrading (I usually go to 3.19.6, and the dart extension will work again). When I upgrade back to 3.24.0 the dart extension will work for some time before no longer working.
The developer tools console when the dart extension stops working on 3.24.0:
The developer tools console when the dart extension is working on 3.19.6:
Potentially related? #48091
dart info
MacBook Pro, Sonoma 14.0
Let me know if there's any other info I can provide.
The text was updated successfully, but these errors were encountered: