Skip to content

Small change in rustup rust-src component breaks rust-analyzer #6178

@ddboline

Description

@ddboline

After upgrading rust to 1.47.0 via rustup I get the following error from rust-analyzer:

rust-analyzer failed to load workspace: Failed to find sysroot for Cargo.toml file /home/ddboline/setup_files/build/garmin_rust/Cargo.toml. Is rust-src installed?: could not find libcore in sysroot path `/home/ddboline/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/`

This appears to be the result of ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src being renamed to ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library, creating a symlink from library to src serves as a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions