Rust Analyzer is trying to look for projects in the root dirctory

For some reason, after I recently renamed the wrong file, rust tried to loom for projects in the root directory (I am running on GitHub codespaces). I have tried reinstalling, creating the project there, reinstalling, and then restarting, I don't know what else to do. What is wrong here?

[ERROR rust_analyzer::main_loop] FetchWorkspaceError:
rust-analyzer failed to load workspace: cd "/wendys" && "/home/codespace/.cargo/bin/cargo" "--version" failed: No such file or directory (os error 2)

(I have checked that the cargo path works)

Found the solution:
Delete the settings.json in the .vscode directory. Apparently, it was referencing the root and trying to index the project there.

1 Like

Yep, it's a recent bug.