Closed svend closed 6 years ago
Racer installed via nixpkgs is patched to add the correct path to the rust source in the nixpkgs store. With this configuration, RUST_SRC_PATH
should not bet set. I couldn't find a way with racer.el to not set RUST_SRC_PATH
. With this patch, setting the RUST_SRC_PATH
environment variable to an empty string results in racer run with this value, which racer treats the same as if it was not set.
Only expand
racer-rust-src-path
andracer-cargo-home
variables, notRUST_SRC_PATH
andRUST_SRC_PATH
environment variables. This make the behavior of racer the same in Emacs and on the command line with these variables set. It will also allowRUST_SRC_PATH
to be set to an empty string, which is required with racer installed via nixpkgs, whereRUST_SRC_PATH
should not be set.https://github.com/NixOS/nixpkgs/blob/348f938c552dcfdc41e543dd20511b5d0e4e70f6/pkgs/development/tools/rust/racer/rust-src.patch