deoplete-rust
deoplete-rust copied to clipboard
Racer binary not set, but AFAICS it is
$ which racer
/home/edd/.cargo/bin/racer
In vimrc:
let g:deoplete#sources#rust#racer_binary='~/.cargo/bin/racer'
let g:deoplete#sources#rust#rust_source_path='/home/edd/research/metarust'
Then gd in vim:
racer binary path not set (:help deoplete-rust)
Let's echo the variable in vim:
:let g:deoplete#sources#rust#racer_binary
g:deoplete#sources#rust#racer_binary ~/.cargo/bin/racer
Not sure what's going in. I've gotten this working in the past.
Can you provide g:deoplete#sources#rust#racer_binary with the full path to the racer binary and try again?
e.g. let g:deoplete#sources#rust#racer_binary='/home/<username>/.cargo/bin/racer'
Usually ~ will not be expanded. You can use $HOME instead.
Using $HOME did not work either, but a full path does.
Thanks
I'll add a section to the docs and also a more helpful error message in the coming days.
Thanks for reporting.
If its in your system path. You can skip defining it with something like this.
let g:deoplete#sources#rust#racer_binary=systemlist('which racer')[0]