Skip to content

Folder with unusual characters in name causes "An error occurred while handling initialized notification" #48091

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

Closed
calebpeffer opened this issue Jan 6, 2022 · 4 comments
Labels
legacy-area-analyzer Use area-devexp instead.

Comments

@calebpeffer
Copy link

calebpeffer commented Jan 6, 2022

Hi all.

Folder names with unusual characters (an . in my case) can cause the dart language server to crash. This error completely disabled the Dart extension and printed no trace information to the console except:

image

Thanks to @DanTup, I found the issue by enabling the analyzer log. Here is a copy of that log:

image

Removing the period from the fdaf. directory name resolved the Error.

@lrhn lrhn added the legacy-area-analyzer Use area-devexp instead. label Jan 6, 2022
@DanTup
Copy link
Collaborator

DanTup commented Jan 10, 2022

@calebpeffer can you confirm which SDK Version you have? I think this may be fixed by 21cbe33 (#47097) which I think should be included in the latest stable versions of the Dart and Flutter SDKs.

@bwilkerson
Copy link
Member

I'm going to close this under the assumption that the change linked to above has fixed the issue. If that's not the case, please let us know and we'll re-open the issue.

@erindolson
Copy link

For anyone else who stumbled upon this issue and this was the ONLY link to show up in google - after deleting and resintalling Xcode, enabling / disabling / uninstalling extensions yada yada I was only able to fix this by downgrading flutter. Could some of those steps in-between helped? Maybe. I couldn't tell you.

I downgraded using flutter downgrade v3.22.0 (which takes you to 3.19.6)

Flutter Doctor with the issue

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.0 23A344 darwin-arm64, locale
    en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.92.1)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

Flutter Doctor without the issue

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.6, on macOS 14.0 23A344 darwin-arm64, locale
    en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.92.1)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

@DanTup
Copy link
Collaborator

DanTup commented Aug 19, 2024

@erindolson if you're seeing an issue like this on the newest SDKs, please file a new issue with a copy of the log/error and the exact folder name you're seeing this with and I'll take a look. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-analyzer Use area-devexp instead.
Projects
None yet
Development

No branches or pull requests

5 participants