If CARGO_HOME is not set, racer tries to set it to the default location $HOME/.cargo. This variable doesn't necessarily end with a / (as on my OS X system), resulting in an invalid path in CARGO_HOME. cargo build then fails with an error:
cargo build --verbose
error: Permission denied (os error 13)
Compilation exited abnormally with code 101 at Sun Jul 10 18:52:03
To fix, the path in HOME should be converted to a path before concatenating.
If
CARGO_HOME
is not set, racer tries to set it to the default location$HOME/.cargo
. This variable doesn't necessarily end with a/
(as on my OS X system), resulting in an invalid path inCARGO_HOME
.cargo build
then fails with an error:To fix, the path in
HOME
should be converted to a path before concatenating.