Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Racer binary not set, but AFAICS it is #4

Open
vext01 opened this issue May 11, 2017 · 4 comments
Open

Racer binary not set, but AFAICS it is #4

vext01 opened this issue May 11, 2017 · 4 comments

Comments

@vext01
Copy link

vext01 commented May 11, 2017

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

@sebastianmarkow
Copy link
Owner

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.

@vext01
Copy link
Author

vext01 commented May 12, 2017

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

Thanks

@sebastianmarkow
Copy link
Owner

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

Thanks for reporting.

@sammerry
Copy link

sammerry commented Jul 7, 2018

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]

chibby0ne added a commit to chibby0ne/deoplete-rust that referenced this issue Sep 17, 2018
Previously, only absolute paths were required, this change allows to use
paths relative to the home directory shorthand command (~)

Fixes: sebastianmarkow#4

Signed-off-by: Antonio Gutierrez <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants