Skip to content

Installing rust-src seems to miss some component #2526

@ylabidi

Description

@ylabidi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions