I have switched from Vim to Atom now to program in Rust, just for a while. In Atom I have installed the ide-rust
-plugin. But I keep getting this error:
rust-analyzer failed to load workspace: Failed to find sysroot for Cargo.toml file /Users/niel/Sites/kaddo/Cargo.toml. Is rust-src installed?: could not find libcore in sysroot path /Users/niel/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/
Rust (rust-analyzer) /Users/niel/Sites/kaddo/
I have rust-src
installed by running the following commands:
rustup update
rustup component add rust-src
rustup component add rust-src --toolchain nightly
But the error keeps existing after restarting Atom.
/Users/niel/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src/
contains a folder called llvm-project
.
/Users/niel/.rustup/toolchains
contains:
1.41.0-x86_64-apple-darwin stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin
1.41.0...
does contain some files with the name rustc in it. Maybe I have to switch to that version somehow?