Skip to content

Doesn't work on Flatpak: "Rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file" #13926

@DanielProg39

Description

@DanielProg39

Sorry, I know that similar issues were opened several times (#3118, #3885), but I have no idea about what causes my problem.
This is what notification from rust-analyzer looks like:

rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file /home/user/projects/fibonacci/Cargo.toml, Some(Version { major: 1, minor: 62, patch: 1 }): Failed to run "/home/user/.cargo/bin/cargo" "metadata" "--format-version" "1" "--manifest-path" "/home/user/projects/fibonacci/Cargo.toml" "--filter-platform" "x86_64-unknown-linux-gnu": cargo metadata exited with an error: error: could not execute process rustc -vV (never executed) Caused by: No such file or directory (os error 2)

This is just an example, for showcasing I made a repo for that project, you can have a look on Cargo.toml and any other files here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-supportCategory: support questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions