-
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
rust-analyzer shows thousands of rustc errors but running the build command on the terminal works fine #15942
Comments
Actually this is caused by a rustc update, not an RA update... when I go back in the rustc history to before rust-lang/rust#116828, everything is fine. I still have no idea what is actually going on though. |
I have tried adding |
I am getting similar behavior in stdarch: just checking out https://github.com/rust-lang/stdarch/, setting the rustup override to nightly, and opening the project in RA leads to thousands of errors. However,
|
You can run r-a with "rust-analyzer.server.extraEnv": {
"RA_LOG": "flycheck=debug",
} |
Where should it put those logs? In the "RA language server" output, all I can see is a ton of "cyclic deps" messages. |
That's where it should log those whenever you trigger the check |
You will have to restart the server fwiw |
Yes, I even reloaded the vscode window. Nothing. Ctrl-F "fly" in the output window shows no results. |
Oh, dang, sorry. I added this to the wrong |
Now I am seeing something:
However, even But indeed if I run So this is probably a bootstrap bug. |
Closing in favor of rust-lang/rust#118129. Thanks for the debugging help! |
Since somewhat recently, RA shows >1800 errors in src/tools/miri in the rustc workspace, even though Miri builds perfectly fine. The errors all claim that various types from rustc cannot be found.
Running the same build command inside vscode in the terminal, everything succeeds just fine -- so it looks very much like this is caused by how RA invokes the build command. The same command still worked last week or so (I don't exactly remember when I used vscode in rustc the last time).
rustc itself builds just fine, it is only Miri where it shows errors.
rust-analyzer version: 0.3.1740-standalone
rustc version: bootstrap beta
relevant settings:
The text was updated successfully, but these errors were encountered: