-
Notifications
You must be signed in to change notification settings - Fork 48
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
emacs-racer seems to have a different idea about RUST_SRC_PATH than the system #93
Comments
How are you setting RUST_SRC_PATH? It sounds like you've set it in a shell and Emacs is ignoring it. You could set The default logic is to either use |
I set it in my .bashrc file |
@ElectricCoffee I suspect if you evaluate the lisp function (getenv "RUST_SRC_PATH") it will return nil. This the function you need to get working if you want racer.el to set racer-rust-src-path to your RUST_SRC_PATH for you. getenv, in part, searchs through the process-environment variable for the path. If you look through the content of that variable you'll probably won't see your path variable. You should look at the section "Why am I getting a message about environment variables on startup?" here. I know you probably don't spacemacs, but the advice to not set environmental variables in your .bashrc might help you here. Short of that you probably just have a configuration issue that's not properly loading environmental variables. |
However, still curious about the rest of my comment. So, now I'm a bit confused: is the Perhaps related to racer-rust/racer#799 Opinions? |
Now racer can work without |
This is a bit of a curiosity.
I've set the RUST_SRC_PATH to point to the source directory:
But racer insists that the variable is set to
"/usr/local/src/rust/src"
via this error:I have a feeling that it's emacs that is doing the re-exporting of
RUST_SRC_PATH
, thus clashing with the existing one.I'm running Ubuntu 17.10, Emacs 25.2.2, Rust v. 1.21.0, and emacs-racer v. 1.2
The text was updated successfully, but these errors were encountered: