Closed ForrestHilton closed 4 years ago
I am experiencing a bug that appears to be caused by emacs-racer using an incorrect path for racer. How can I set the path manually?
The last racer command was:
$ cd /home/forrest/Projects/rust/guess/ $ export CARGO_HOME=/home/forrest/.cargo $ export RUST_SRC_PATH=/home/forrest/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src $ /usr/local/bin/racer complete 1 14 /home/forrest/Projects/rust/guess/src/main.rs /tmp/racerP6EyQ5
This command terminated with exit code 127.
No output on stdout.
No output on stderr.
The temporary file will have been deleted. You should be able to reproduce the same output from racer with the following command:
$ CARGO_HOME=/home/forrest/.cargo RUST_SRC_PATH=/home/forrest/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src /usr/local/bin/racer complete 1 14 /home/forrest/Projects/rust/guess/src/main.rs
I need to clarify :
$ locate *bin/racer /home/forrest/.cargo/bin/racer
;; Set path to racer binary (setq racer-cmd "/home/forrest/.cargo/bin/racer")
I am experiencing a bug that appears to be caused by emacs-racer using an incorrect path for racer. How can I set the path manually?
The last racer command was:
$ cd /home/forrest/Projects/rust/guess/ $ export CARGO_HOME=/home/forrest/.cargo $ export RUST_SRC_PATH=/home/forrest/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src $ /usr/local/bin/racer complete 1 14 /home/forrest/Projects/rust/guess/src/main.rs /tmp/racerP6EyQ5
This command terminated with exit code 127.
No output on stdout.
No output on stderr.
The temporary file will have been deleted. You should be able to reproduce the same output from racer with the following command:
$ CARGO_HOME=/home/forrest/.cargo RUST_SRC_PATH=/home/forrest/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src /usr/local/bin/racer complete 1 14 /home/forrest/Projects/rust/guess/src/main.rs