-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Inline errors not shown for multi-crate project with custom build script #5962
Comments
Try setting |
Interesting option. However, just setting that does not change anything. Isn't there a debug log of how it invokes the check-on-save command and if that was executing properly? When I save, the "cargo check" label doesn't appear at all (or it disappears very quickly), so I am not sure it is even running the right thing. |
Oh, in the last few minutes it decided that my language server was outdated. (That message wasn't there yet 30min ago and I didn't notice it popping up.) Let's see if that changes anything... No, doesn't seem to help either. |
Strangely, even if I remove my custom build script but keep // Place your settings in this file to overwrite default and user settings.
{
"rust-analyzer.rustfmt.extraArgs": [
"+nightly"
],
"rust-analyzer.linkedProjects": ["./Cargo.toml", "./cargo-miri/Cargo.toml"]
} So maybe the problem is not with my build script but with with the extension's handling of having multiple "linked project"? |
A possible factor in this might be this part of
Maybe it incorrectly interprets |
I think this is fixed / tracked elsewhere these days:
|
I am trying to get vscode to work properly with Miri. The tricky part is that Miri consists of two (independent) crates, but is not a workspace because that wouldn't work with it also being part of the rustc workspace. So (and also for other reasons) I have a
./miri
script somewhat similar to./x.py
. I configured vscode to use that script:When I run this on the command-line, it works fine -- at least there is lots of JSON and some of it looks like the error message I am expecting. But in vscode, it doesn't show errors for
cargo-miri
(the crate that is in a subfolder). It does show errors for the "root" crate -- almost as if it would ignore my command?I am not sure how to debug this. I found a thing called "extension debug log folder" and in there I found this
but I am not sure if that has any significance. That folder indeed does not exist, there's a
cargo-miri
subfolder that is missing -- but the JSON is giving the absolute path correctly:Any idea why vscode does not show inline errors for cargo-miri?
I realize this is a strange setup, but it is no more strange than rustc's
x.py
so I am trying to figure out why it does not work.^^The text was updated successfully, but these errors were encountered: