-
Notifications
You must be signed in to change notification settings - Fork 255
"RLS analysis: working ◐" never stops #450
Comments
@azerupi can you try setting |
Huh, I am not sure why. But adding that in the settings and relaunching vscode made the problem vanish. I doubt it is a direct cause of adding that setting, but I will investigate. |
Ok, that is really really weird. I tried relaunching vscode with and without that key in the settings and it does actually change the behaviour for me.. 😨 Without the Edit: I can reproduce that on at least one other repository. However, I tried it on the RLS repository and it did work without the key there. |
I think that's a second or a third report like that, spooky stuff 👻 👻 My only idea is that the rls-vscode extension doesn't catch properly all the |
I am not going to say I am 100% positive because it has only been a couple of hours. But the behaviour has been consistent until now. I currently have the setting enabled and will keep it so for the moment, so if I spot the forever spinner I will let you know 😉 |
I had a similar issue (I think). I saw this error message in the RLS output:
I figured that it wasn't happy with null for one of the config properties, and narrowed it down to |
@leafgarland could you post the output of |
|
No worries - from what I know RLS isn't updated, well, nightly, as it has to be manually pushed to be published as a toolchain component, so I assume the next version will be bundled with the newest nightly fairly soon. |
This may be a similar bug (which I suspect relates to the extension rather than rls): I have a suspicion the perpetual |
For me setting @booyaa For me hitting enter did not solve the issue. It makes it go from 'starting up' to 'working'. Once it's in working, all features like squiggly lines, auto complete and formatting stop working. |
This is still happening. |
From a quick look, it seems the stderr pipe is never getting cleared on the typescript end when neither of those options are set. I'm traveling today and can't set up these projects to test this, but here's a potential fix if someone wants to try it: if (!CONFIGURATION.logToFile && !CONFIGURATION.showStderrInOutputChannel) {
childProcess.stderr.resume();
} This isn't a full solution because if the log stream fails to open and Also see the node docs on stream - https://nodejs.org/api/stream.html#stream_class_stream_readable - the pipe has to be switched into flowing mode either by adding a data listener or calling |
Hmm, we've changed out stderr handling in VSCode quite a bit, I wonder if this is fixed? |
I haven't run into this in a while. There were times when the analysis didn't seem to finish, but it was just very slow, I think. |
Cool, please let us know if the behaviour returns. |
I am still experiencing this. The log file contains:
I am on rls-preview 0.122.0-nightly (48fd42f 2017-11-01). |
@cynecx do you use Rustup? If you try to run |
@nrc I am on macOS and am also using rustup, rustc from the command line also works. It seems that rustc is runnable from the integrated terminal. |
Hmm I wonder if there is a bug in the VSCode client or if there is a problem with the RLS which is just ending up at that panic? I'll open a new issue. |
I had the exact same issue as @cynecx !
Immediatelly, whenever I open a project. edit: typo |
I can confirm that @hecaex's fix does workaround this issue :) |
I'm here to report that using macOS, this problem still persists, and using @hecaex does not in fact fix it for me |
The spinner not stopping is a very generic symptom. It just means that the RLS has crashed (or otherwise got stuck) while processing your project. If you're seeing this, please could you post a link to the project which is causing it (if possible) and go though some of the steps in debugging.md to get some logging info. It is probably better to open a new issue for each case until we can diagnose exactly what is going wrong. |
I'll clarify. I already did the steps in debugging to get some log info, and the reason I'm pitching in here is because the log info is exactly the same as above, which is thread '<unnamed>' panicked at 'need to specify SYSROOT or RUSTC env vars, or rustc must be in PATH', src/libcore/option.rs:839:4
note: Run with `RUST_BACKTRACE=1` for a backtrace. I'm using the generic generated template project for a rust library, which can be generated by entering cargo new communicator on the terminal. EDIT: I also ran vs code from the terminal, checked my rustc path, and ran rustc from within vs code and in terminal, which all seemed correct |
should be fixed if you |
@MaxBittker For me, that made it a lot worse. Now it gets stuck even on small "Hello world" projects. It sometimes does give feedback despite being stuck on working, but usually this takes up to half a minute, and it's very unreliable. |
Seems like another update must've landed not too long before I posted that yesterday, as the issue of the spinner being stuck is resolved now, although the behaviour of RLS itself is still very unreliable. |
I had the same problem. Updated with rustup and now the spinner stopped and everything seems to work! |
I'm having the same issue in workspace setup on this project : https://github.com/Sach97/dodge |
I have been trying to get the RLS working on mdBook for some time now. It just never gets past "RLS analysis: working ◐".
I tried running vscode with the following command, as suggested:
But it never outputs anything. I also tried with and without setting
"rust.build_lib": true
because I have a project containing both. But unfortunately that didn't work. I can reproduce this on both my mac and my linux pc.The thing is, though, that the vscode-rust extension with RLS enabled can cope with my project without any trouble. Giving me auto-completion, linting as I type, etc. So to me, it seems like the RLS can work with the project, but somehow the official Rust extension does something different that makes it fail or hang.
Can I do something else to try and debug this? Does anyone have a clue as to why this could happen?
The text was updated successfully, but these errors were encountered: