deoplete-rust icon indicating copy to clipboard operation
deoplete-rust copied to clipboard

Racer binary not set, but AFAICS it is

Open vext01 opened this issue 8 years ago • 4 comments
trafficstars

$ 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.

vext01 avatar May 11 '17 13:05 vext01

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.

sebastianmarkow avatar May 11 '17 20:05 sebastianmarkow

Using $HOME did not work either, but a full path does.

Thanks

vext01 avatar May 12 '17 16:05 vext01

I'll add a section to the docs and also a more helpful error message in the coming days.

Thanks for reporting.

sebastianmarkow avatar May 12 '17 21:05 sebastianmarkow

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]

sammerry avatar Jul 07 '18 17:07 sammerry