Unable to start rust-analyzer because of corrupt env vars #184
Description
I just updated from the old RLS version to the new version using rust-analyzer. All packages are installed using the only package manager on my system, pacman, and I'm not using rustup. Hence rustc
, cargo
and rust-analyzer
are all installed in /usr/bin
and I've set RUST_SRC_PATH=/usr/lib/rustlib/src/rust/library/
to the correct location. This setup works fine when using lsp-mode
in emacs, so rust-analyzer is working.
However, in atom it fails to start because it searches for the rust src in ~/.rustup/somewhere
which obviously doesn't exist. Also, rust-analyzer's error message hints that RUST_SRC_PATH
was set to that nonexistent path. How can I tell the ide-rust package to not corrupt my environment variables? It just needs to keep RUST_SRC_PATH
the way it is.