Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instructions to get rust-analyzer to work #1229

Closed
wants to merge 1 commit into from

Conversation

wooster0
Copy link
Contributor

This fixed it for me.

@JohnTitor
Copy link
Member

Duplicate of #1211, cc @camelid could we merge your PR now?

@wooster0
Copy link
Contributor Author

Oh, my bad.
I agree, I think it'd be nice to have this fixed because the error that rust-analyzer gives for this is not very helpful and probably confuses other contributors too.

[ERROR rust_analyzer::reload] failed to switch workspaces: rust-analyzer failed to load workspace: Failed to read Cargo metadata from Cargo.toml file /home/roost/Code/rust/Cargo.toml, cargo 1.57.0-nightly (d56b42c54 2021-09-27): Failed to run `cargo metadata --manifest-path /home/roost/Code/rust/Cargo.toml`: `cargo metadata` exited with an error: error: failed to load manifest for workspace member `/home/roost/Code/rust/src/tools/rust-installer`

Caused by:
  failed to read `/home/roost/Code/rust/src/tools/rust-installer/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

@wooster0 wooster0 closed this Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants