Skip to content

rust-analyzer failed to load workspace #14462

@SirSharanChakradhar

Description

@SirSharanChakradhar

ERROR: [ERROR rust_analyzer::main_loop] FetchWorkspaceError:
rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file /home/sharan/rust/apr1/Cargo.toml, Some(Version { major: 1, minor: 68, patch: 2 }): Failed to run cd "/home/sharan/rust/apr1" && "cargo" "metadata" "--format-version" "1" "--manifest-path" "/home/sharan/rust/apr1/Cargo.toml" "--filter-platform" "x86_64-unknown-linux-gnu": cargo metadata exited with an error: Updating crates.io index
error: failed to select a version for the requirement neo4j = "^4.0.0"
candidate versions found which didn't match: 0.0.0
location searched: crates.io index
required by package apr1 v0.1.0 (/home/sharan/rust/apr1)

~ I knew neo4j to be neo4rs yet dont solve the problem.

rust-analyzer version: 0.3.1451

rustc version: rustc 1.68.2 (9eb3afe9e 2023-03-27) (Arch Linux rust 1:1.68.2-1)

Screenshot_2023-04-01-12-34-11_2256x1504

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