-
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
LSP initialization failure when using VS Code Live Share #52986
Comments
Can we determine which glob is causing the problem? There might be another bug in Independently of that, it would be good if (a) this code was guarded by a try/catch so that invalid globs didn't crash the server (or alternatively that we identified invalid globs earlier and never passed them to this method) and (b) we could identify invalid globs as part of analyzing the analysis options file (where I'm guessing they come from) and report them to users via a diagnostic. |
Yeah, I'm trying to debug. What's weird is that VS Code blames the DCM extension (see bottom of screenshot) and I haven't been able to trigger it without DCM enabled. However, it shows up in my instrumentation log file, so I don't see how it can possibly be related to DCM (and chatting with @incendial DCM doesn't have these files). I'll update when I have a better idea of what is going on 🙃 |
I believe there is a common bug (probably in the analyzer??) and both extensions throw it 😁 |
This stack trace looks very similar to the one given in #52986 (at least from the first stack frame from the |
Ok, a few things I've figured out:
I'm not sure why DCM is picking up the error (and showing the notification - something I don't see when DCM is disabled), but it's being blamed because it's (apparently) showing the notification. I'll look into that more when I've fixed the other issues. As for why we're seeing an error, I actually think this is the same as #52952 now. It appears to be analyzing my entire disk (and found the The reason it's doing this, is that in the Live Share window, this is being sent to the LSP server:
This appears to be telling the server that we have the root folder open (which I definitely do not). I'll do some digging in the Live Share repo to see if this has been discussed before, and if not might file an issue - I feel like that URI should be a
|
This is actually a Dart-Code issue. There's code in Dart-Code to normalize file casing (to work around some issues where VS Code continues to give us the original casing if a file is renamed by only case), and it doesn't handle non-file-URIs correctly (everything ends up as a This is causing a translation of I've opened Dart-Code/Dart-Code#4652 and will get a fix to the pre-release extension channel soon.
I've opened #52988 to track improving this. I think it was probably the intention that |
While investigating #52952, I see this error.
I don't know if it's related to #52952 (I'm definitely not seeing high CPU), so filing as another issue.
Weirdly, it looks similar to the error I reported in dart-lang/glob#80 and I was testing that recently, but I can find no instances of globs like that in this project, so I think that might be a weird coincidence.
The text was updated successfully, but these errors were encountered: