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

Installing rust-src seems to miss some component #2526

Closed
ylabidi opened this issue Oct 17, 2020 · 3 comments
Closed

Installing rust-src seems to miss some component #2526

ylabidi opened this issue Oct 17, 2020 · 3 comments
Labels

Comments

@ylabidi
Copy link

ylabidi commented Oct 17, 2020

Problem
After rust-src is seemingly successfully installed, I still get error from emacs/racer about failing to find the sources at the expected path. And sure enough that path doesn't exist:

eldoc error: (user-error No such directory:                │
/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src. Please set   ‘racer-rust-src-path’ or ‘RUST_SRC_PATH’)

The actual tree there is as follows:

$ ls ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/
Cargo.lock  library

Steps

  1. Install rust-src
  2. edit a rust file with a configured emacs editor
  3. emacs keeps complaining about sources not available
@ylabidi ylabidi added the bug label Oct 17, 2020
@ehuss
Copy link
Contributor

ehuss commented Oct 17, 2020

(Duplicate of #2522.)

The directory was renamed to library. Racer was updated in racer-rust/racer#1130 to use the new directory, but it looks like the README was not updated. Perhaps file an issue on the racer repo?

EDIT: Or, you may want to check if your installation of racer is out of date, I'm not sure if a new version is available.

@ylabidi
Copy link
Author

ylabidi commented Oct 17, 2020

Thanks, I'll build racer off the latest source and see if it solves the issue.

@ylabidi ylabidi closed this as completed Oct 17, 2020
@ylabidi
Copy link
Author

ylabidi commented Oct 17, 2020

Just an FYI for whoever stumbles on this with a similar configuration (emacs + rustic + rls), it seems updating racer has no effect, because in this case rls handles the completion and it uses racer as a library to that effect, and it seems it's still built against an older version of racer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants