-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Hanging LSP requests on Corrosion (Eclipse) #14146
Comments
@lnicola thanks for opening this.
I tried that, by setting a windows environment variable before opening eclipse, as follows: But this causes Eclipse to become completely unresponsive and there is a stuck rust-analyzer in the task manager, which when killed unfreezes eclipse which results in this: |
For reference my Eclipse IDE rust settings look like this: Note the 'language server' setting end /with/ a Release: https://github.com/rust-lang/rust-analyzer/releases/tag/2023-02-06
|
Humm.. What if you also set |
After a while though, the problem re-occurs: I have a 675MB log saved here. Here's the last 100 lines, via
|
I think |
I did that, but it's not currently stalling, I do see log output though. When it stalls next I'll post the log. |
Just to be sure, can you check that a different IDE works fine? And is your project public? |
@lnicola I guess I could try VS Code, I have it installed but haven't tried configuring it to use rust-analyzer yet, but I did see some instructions above the troubleshooting link you sent prior. No, my main project is not public, it's a large codebase with many workspace crates, though I was having issues with tiny test/playground projects too. At this point I'm wondering if there's a timing or threading related issue going on, I use a X5950 CPU with 32 threads, I say this because enabling logging to a single file likely causes thread synchronization if there are multiple threads, and/or will block due to blocking io which can also cause code to be executed in a different order. Is it possible to limit rust-analyzer to use a single thread, or does it only use one thread anyway? |
Go to the extensions pane, install the extension. If you want to set some env variables, press
Yeah, might be. You can also try to disable
It's a bit more complicated, but there's
Yeah, I've got one of those too, it's not a reason to hang. In addition, you can give |
Can you point me at the docs that explain how to make the configuration changes you describe above? Is there some configuration file somewhere that they are stored in? Excuse me for being a noob when it comes to using rust-analyzer, I don't know how to change the settings for it as above, my experience with the tool only comes though the Eclipse Corrosion plugin which is a required installation for the tool and Eclipse Corrosion doesn't expose a UI for rust-analyzer configuration or give any real details about it so I'm kinda floundering in the dark a bit here. For sure I can try the various settings you suggest, just need to know how to make the changes. |
For Corrosion? No idea, I've never used it. In Code, you can press And for |
It's certainly better, but it still dies and in Eclipse 2/ Corrosion the end user experiance is that the IDE shows a 'Language Background Server Job' that never completes, task manager shows multiple instances of 'rust-analyzer.exe' and hover-over always fails with two errors in the IDE log:
and
Version details:
Originally posted by @hydra in #10910 (comment)
The text was updated successfully, but these errors were encountered: