-
Notifications
You must be signed in to change notification settings - Fork 18
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
Issue with collectLocations #68
Comments
While debugging, I tweaked the implementation of
it would be great if the whole stack trace was flushed in the file, it's much easier to find the cause of an issue. Do you want a PR for that? |
That PR would be welcome.
|
So we've hit a bug in some part of the language-server. I found what's triggering it and I have a small reproduction. When the bug happens, the
project
is not loaded and the rest of the IDE experience is poorly degraded.The cause is the following NPE:
This is rather explicit: we pull something out of a map, it can be null if the thing is not in the map, but we don't check for that, so it blows up.
The quick fix is to do a null check. The right fix is to find why this happens. So I went on a hunt.
Given the following:
With the following content:
This specific workspace will blow up the LSP w/ the error above.
Everything is fine if I comment the following line:
apply SomeOpInput$isTest @documentation("Some doc")
Also, everything is fine if I pull the shapes from
core
intotest
(placing the shapes in the same file / same namespace).The text was updated successfully, but these errors were encountered: