Closed
Description
Sorry to reopen this issue #4172 but the issue is still running and is not due to local toolchain installation.
It is more the difference of folders of rust-src
between stable and nightly.
I have both stable and nightly and both have rust-src
component installed but the folder inside rust-src is not the same for both toolchains.
In stable, rust-src contains an src
folder and the requested libcore
folder inside to load the workspace.
In nightly, rust-src contains only library
and so rust-analyzer still tries to load src/libcore
in nightly active toolchain.
And so the following still error occurs:
rust-analyzer failed to load workspace: Failed to find sysroot for Cargo.toml file /Users/.../workspace/.../Cargo.toml. Is rust-src installed?:
could not find libcore in sysroot path `/Users/.../.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src`
Metadata
Metadata
Assignees
Labels
No labels