Skip to content

rust-analyzer failed to load workspace #4172

Closed
@Redoubts

Description

@Redoubts

I installed rust with brew on MacOS, and I'm noticing this error on a hello world project with VS Code:

rust-analyzer failed to load workspace: 
    Failed to find sysroot for Cargo.toml file ./rust_new/Cargo.toml. 
    Is rust-src installed?: rustup component add rust-src failed

I didn't install with rustup, and I figured I wouldn't need to. This suggests I must, but why? Does this suggest I need the complier source to use your package in my editor?

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