Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

company: back company-capf error "symbol's function definition is void -let" with args (candidate B) #111

Closed
stuartstein777 opened this issue Dec 4, 2018 · 4 comments

Comments

@stuartstein777
Copy link

stuartstein777 commented Dec 4, 2018

Running on Emacs on Windows,

When I try to autocomplete on

use std::io::B then TAB

I get the error

Company: backend company-capf error "Symbol's function definition is void: -let" with args (candidates B)

my init.el

(add-hook 'rust-mode-hook 'cargo-minor-mode)

(add-hook 'rust-mode-hook #'racer-mode)
(add-hook 'racer-mode-hook #'eldoc-mode)

(add-hook 'racer-mode-hook #'company-mode)
(require 'rust-mode)
(define-key rust-mode-map (kbd "TAB") #'company-indent-or-complete-common)
(setq company-tooltip-align-annotations t)

I have an environment variable set

RUST_SRC_PATH = C:\Users\stuarts\.multirust\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src

I can run / build with cargo fine, all I'm missing is racer and autocomplete stuff.

I have the source the location in the RUST_SRC_PATH, it was installed via

$ rustup component add rust-src
$ cargo +nightly install racer

Any ideas why I'm getting this error?

@Wilfred
Copy link
Member

Wilfred commented Dec 5, 2018

Sounds like you don't have the dependencies of racer.el, specifically dash.el which provides -let. How did you install racer.el?

@stuartstein777
Copy link
Author

I installed it following the guide here:

https://github.com/racer-rust/emacs-racer

@Wilfred
Copy link
Member

Wilfred commented Dec 10, 2018

Did you install racer.el from MELPA? Do you have dash.el? If you install dash.el, this package should work.

@Wilfred
Copy link
Member

Wilfred commented Mar 7, 2021

Closing due to age. Feel free to reopen if you can reproduce.

@Wilfred Wilfred closed this as completed Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants