Closed
Description
Steps to reproduce
- Create an empty directory -
dir1
- Within that directory create another directory
dir2
- Withing
dir2
initialize a rust project withcargo init
- Open the
dir1
in VSCode - Save the
main.rs
file - The popup should appear
Description
Given a workspace structure
root_dir:
project_dir:
Cargo.toml
src:
main.rs
When saving a file I'm seeing an error popup with the content cargo check failed Check the server logs for additional info.
In the server logs I see this
[ERROR flycheck] Flycheck failed to run the following command: "cargo" "check" "--workspace" "--message-format=json" "--all-targets"
[ERROR rust_analyzer::lsp_utils] cargo check failed
Cargo watcher failed, the command produced no valid metadata (exit code: ExitStatus(unix_wait_status(25856))):
error: could not find `Cargo.toml` in `/path/to/workspace` or any parent directory
rust-analyzer version: rust-analyzer version: 0.4.1257-standalone (43fb9563b 2022-10-23)
rustc version: rustc 1.64.0 (a55dd71d5 2022-09-19)
Metadata
Metadata
Assignees
Labels
No labels