racer-rust / emacs-racer

Racer support for Emacs
398 stars 48 forks source link

company-capf error #8

Closed jnordwick closed 9 years ago

jnordwick commented 9 years ago

I ttried both from source and the repo, but I keep getting this message:

Company: backend company-capf error "/.../racer exited with status 1" with args (candidate B)

Any idea why? I'm running nightly of cargo and rust. Fresh clone of racer and racer-mode racer works fine from the command line.

Here is racer part of my dot-emacs:

;; racer
(load "/home/jnordwick/.emacs.d/racer.el")
(setq racer-cmd "/home/jnordwick/rust/racer/target/release/racer")
(setq racer-rust-src-path "/home/jnordwick/rust/rust")
(add-hook 'rust-mode-hook #'racer-mode)
(add-hook 'racer-mode-hook #'eldoc-mode)
(add-hook 'racer-mode-hook #'company-mode)
(global-set-key (kbd "TAB") #'company-indent-or-complete-common) ;
(setq company-tooltip-align-annotations t)
jnordwick commented 9 years ago

Nevermind. This error comes from me pointing to the base of the rust source project (.../rust) and not to the actual srouce (.../rust/src). I'll close it and leave it here for others that make this same mistake.