-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
request textDocument/completion failed #805
Comments
Thanks for the report! Lexical runs a second node that runs your project code, and it's theoretically possible that it was started with a different version of Elixir than the 1.15.7 that's visible in your stacktrace (that's from the server node). To confirm this, I'd really appreciate it if you could follow these steps;
|
I get an error when I run that:
|
I was able to get it running by manually including the helpers. The response is 1.15.7:
|
Thanks for that. I may know what's going on. Could you drop into that debug shell one more time and run this? |
Your intuition appears correct @zachallaun :
|
@sb8244 Thanks! I think this will require a fix in ElixirSense and am working on a PR for that now. When that's merged, we'll bump the dependency and get a patch release out! In the meantime, to fix this, you can build Lexical yourself on Elixir >= 1.14 and use that version following the installation instructions for your editor. |
Thanks, I was able to get that running locally 👍 I appreciate your help! |
@sb8244 We've updated elixir_sense, can you pull main and confirm this is fixed for you? |
I can confirm no issues in the past week! Cheers. |
Actually, this is happening still. I will make sure everything is up to date. Re-opening. @scohen were you asking me to pull main and then do a custom build to test it out? Because doing a custom build fixed the issue even without a code change, so I don't think that would be a sufficient test. |
I'm confused, @sb8244 you don't have the issue, but you're reopening? |
See my second comment @scohen . I thought it was not happening because autocomplete was working earlier. Then I was updating an Elixir file and every key stroke resulted in the error message popping up with the same error in output. I think it may only happen in certain situations, and I mixed myself up. |
To be clear, this is the release version that's failing for me and not main branch of the repo. Generating the bin locally worked even before the fix, so I don't think that's a way for me to test if it's working. |
That's because the released version is compiled on elixir 1.13, and the version you build yourself is compiled on whatever version of elixir you have installed. The problem will only surface when lexical is compiled on 1.14 or earlier and run on 1.15 or later, which is why it resolved when you compiled without the change. With the change, we removed the compile-time check in favor of a runtime check, so this can't happen. |
I've released 0.7.1 that includes this fix, you can update to that and close if the issue is gone. |
Yes I'm excited to test that out. I apologize but I'm a bit unsure of what I should do to test out the new version. I thought it would be a VSCode release, although that's on 0.0.18, so my gut tells me that's not it. |
Aha! I saw the 0.7.1 release come through the lexical extension once I disabled my custom override and reloaded VSCode. I tested the same thing that broke before the release and it's now working. So I will call this closed for real. Thanks @scohen! |
I'm receiving the following error every time I modify an Elixir file.
I traced this down to some code that I don't think should be running—a call to
Code.Identifier.classify
? It has a version match for Elixir 1.14, and I'm on 1.15.7.I did not see this error until the latest lexical update.
The text was updated successfully, but these errors were encountered: