-
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
Limited feedback in large VS Code workspace #2202
Comments
That kind of errors comes from |
I have "Enable Cargo Watch On Startup" set to true in the VS Code config, if that's what you're asking. |
I was thinking about if the ra ext does actually run cargo watch for all projects of a vscode workspace. |
@matklad seems to suggest it should work in #1834 (comment). |
@matklad do you have any feedback on what might be going on here? Is there something else I could do to debug this? I'd be potentially down with hacking on this if there is a clear path to get it working again. |
Haven't looked into this yet, but my understanding is that, while in theory we support multi-workspace setups, no plumbing has been done to actually enable this. Hm, now that I actually look at the code, there's code that tries to handle this use-case
I am not sure if this code actually works (as you can guess from the fact that I don't even remmeber that this code exists :) ), as I am not using multi-workspace myself. So, the thing to do here would be:
|
I've been setting up a new machine where I actually saw this working. My current hypothesis is that it'll fail if one of the workspaces has a compilation bug (or potentially a dependency conflict). |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@daern91 seems to be talking about a Cargo workspace, whereas I was talking about a VS Code workspace that contained many projects, where each project is its own Cargo workspace. Do you have reason to assume this works now? I moved away from working like that because of this bug. |
I have a largish VS Code workspace; at the moment it contains 13 projects, each of these contains one crate or virtual workspace in the root. After starting VS Code, rust-analyzer reports "workspace loaded, 2268 rust packages", and there's no output in the debug console.
However, after loading this workspace, I only get very limited feedback from rust-analyzer. For example, if I change a field name to be incorrect, there's no error (as in, red underlining). However, syntax errors are correctly flagged (for example, if I remove the comma between two items in imports).
I'm using rust-analyzer master as my daily driver, updated every few days. Currently running 9d786ea.
The text was updated successfully, but these errors were encountered: