Rust Analyzer doesnt work after add new cargo

So i just add using " cargo new adder --lib " and now my rust analyzer doesnt work and show this massage

Failed to load workspaces.rust-analyzer.linkedProjects have been specified, which may be incorrect. Specified project paths:

.\shrek\adder\Cargo.toml

for this file i already deleted it

and in output

2024-03-25T10:40:35.438347Z ERROR rust_analyzer::main_loop: FetchWorkspaceError:
rust-analyzer failed to load workspace: Failed to load the project at C:\Users\user\OneDrive\Desktop\Rust.\shrek\adder\Cargo.toml: Failed to query rust toolchain version at C:\Users\user\OneDrive\Desktop\Rust.\shrek\adder, is your toolchain setup correctly?: "C:\Users\user\.cargo\bin\cargo.exe" "--version" failed: The directory name is invalid. (os error 267)

This is indeed not a correct path. The . right after Rust is not allowed. What is your vscode config?

how i change the directory to the right path
and sorry im new i dont know what config you mean or where

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.