You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within that directory create another directory dir2
Withing dir2 initialize a rust project with cargo 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