Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Unable to start rust-analyzer because of corrupt env vars #184

Closed
@msrd0

Description

@msrd0

I just updated from the old RLS version to the new version using rust-analyzer. All packages are installed using the only package manager on my system, pacman, and I'm not using rustup. Hence rustc, cargo and rust-analyzer are all installed in /usr/bin and I've set RUST_SRC_PATH=/usr/lib/rustlib/src/rust/library/ to the correct location. This setup works fine when using lsp-mode in emacs, so rust-analyzer is working.

However, in atom it fails to start because it searches for the rust src in ~/.rustup/somewhere which obviously doesn't exist. Also, rust-analyzer's error message hints that RUST_SRC_PATH was set to that nonexistent path. How can I tell the ide-rust package to not corrupt my environment variables? It just needs to keep RUST_SRC_PATH the way it is.

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