racer-rust / emacs-racer

Racer support for Emacs
399 stars 48 forks source link

Company Backend not working (exit code 127) #153

Open ungatz opened 2 years ago

ungatz commented 2 years ago
The last racer command was:

$ cd /Users/sanadkadu/github/pathOfTheRustacean/
$ export CARGO_HOME=/Users/sanadkadu/.cargo
$ export RUST_SRC_PATH=/Users/sanadkadu/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src
$ /Users/sanadkadu/.cargo/bin/racer complete 5 15 /Users/sanadkadu/github/pathOfTheRustacean/fibonacci.rs /var/folders/xx/3k0k7xmd04d51rh7rnxy4cwc0000gn/T/racertqBgSg

This command terminated with exit code 127.

stdout:

Process *async-racer* exited abnormally with code 127

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=/Users/sanadkadu/.cargo RUST_SRC_PATH=/Users/sanadkadu/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src /Users/sanadkadu/.cargo/bin/racer complete 5 15 /Users/sanadkadu/github/pathOfTheRustacean/fibonacci.rs
glanham-jr commented 2 years ago

Is racer installed? I had a similar issue, but I noticed racer wasn't on my system. Check if /Users/sanadkadu/.cargo/bin/racer exists. If not, you can find instructions here.