-
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
/home is incorrectly detected as the rust toolchain to use #17159
Comments
Assuming you don't have any sysroot settings set, we are just invoking |
Is it possible that rust-analyzer is detecting a workspace somewhere nested in the rust repo checkout I have inside my cg_clif checkout with an intentionally wrong toolchain? And if so how do I stop it from detecting this? |
Hmm, the error message is stating |
I can repro this it seems, will investigate (it seems to default to the parent dir for some reason) |
Ah the cause is the inline rust-project specification in the linked projects, The problem is the |
I tried using
And alternates between the following status messages: "Roots scanned: 275/277: rust", "Roots scanned: 275/277: download", and no status message at all. |
Also if the "Loaded workspaces" list is too big, I can't scroll down, thus making the buttons beneath it inaccessible. |
Allow sysroots to only consist of the source root dir Fixes #17159 This PR encodes the `None` case of an optional sysroot into `Sysroot` itself. This simplifies a lot of things and allows us to have sysroots that consist of nothing, only standard library sources, everything but the standard library sources or everything. This makes things a lot more flexible. Additionally, this removes the workspace status bar info again, as it turns out that that can be too much information for the status bar to handle (this is better rendered somewhere else, like in the status view).
Allow sysroots to only consist of the source root dir Fixes rust-lang/rust-analyzer#17159 This PR encodes the `None` case of an optional sysroot into `Sysroot` itself. This simplifies a lot of things and allows us to have sysroots that consist of nothing, only standard library sources, everything but the standard library sources or everything. This makes things a lot more flexible. Additionally, this removes the workspace status bar info again, as it turns out that that can be too much information for the status bar to handle (this is better rendered somewhere else, like in the status view).
rust-analyzer version: rust-analyzer version: 0.4.1938-standalone (f216be4 2024-04-27)
rustc version: rustc 1.79.0-nightly (aed2187d5 2024-04-27)
editor or extension: VSCode
relevant settings: Unknown
repository link (if public, optional): https://github.com/rust-lang/rustc_codegen_cranelift/
reproducer: Happens when working on cg_clif, no clue why it thinks
/home
should be used as toolchain.The text was updated successfully, but these errors were encountered: