-
Notifications
You must be signed in to change notification settings - Fork 256
RLS is overwriting/competing with cargo CLI builds #866
Comments
This should not happen with the newest version of the VSCode extension, see bug #864. Anyway, the setting "rust.target_dir" should solve the problem. |
Adding |
This setting doesn't seem to fix the issue for me. I'm running VSCode RLS There might be something obvious that I'm missing but I can't see what. |
Yeah, I'm seeing the same issue. It seems to be exaggerated by setting |
A VSCode workspace? I'm seeing the same issue, and changing |
A Cargo Workspace, not a VSCode one. I open Code by running Paging the issue rust-lang/vscode-rust#311 where people seem to have the same issue. |
For people not using VSCode (but, say LanguageClient-neovim), note that RLS does not actually accept a setting called
It's not ideal... |
@jonhoo it does accept the parameter via LSP (It seems that LanguagueClient-neovim implemented it in autozimu/LanguageClient-neovim#179, might be worth taking a look, it looks like it needs a single config file in the workspace) |
@Xanewok See my follow-up in #870 (comment). Setting |
Well, setting |
As mentioned above, I don't think I've changed anything, but now the
Edit: Reverting to rust 1.25.0, then trying from the cli again fixes it:
So the issue definitely appears to be with rls. |
We will address this by (hopefully) making a point release on the stable channel next week (rust-lang/rust#50756) |
In the meantime, I would recommend using beta or nightly channel RLS to avoid the bug. Sorry for the inconvenience. |
Hello I have a workspace with 2 projects in it. I am using VSCode. Neither setting the |
@nrc I believe several of the users here, myself included, also observe this on nightly rls? |
Apart from yet again premature fix (sigh) that is fixed in the recent 0.4.4 (rust-lang/vscode-rust#316) version of the VSCode plugin, I think nightly users should not be affected. @jonhoo is it with |
@Xanewok yes, this is with |
Should be fixed now. |
@nrc do you have a link to where the fix landed? |
It was quite a while ago, sorry - it was only broken for a small window of time, we just got unlucky and picked a stable release from that window. |
RLS in VSCode just started competing with cargo CLI builds, ever since Rust 1.26 was released. If I let RLS run on a project, and then run
cargo build
from the CLI, then touch a file and let RLS run, then runcargo build
again, I end up rebuilding from scratch.On a related note, any time RLS is running, I now get
Blocking waiting for file lock on build directory
when trying to run a cargo command from the CLI.This makes RLS completely unusable, since I'm constantly rebuilding from scratch and waiting on RLS before I can even start.
This is on MacOS 10.12.6. Please let me know what other information I can provide to help solve this problem.
The text was updated successfully, but these errors were encountered: