I guess don't a Cargo.toml file your project? rust-analyzer a Cargo.toml detect workspace. could create new rust project cargo:. cargo your-project cargo help create Cargo.toml file automatically, you manually create Cargo.toml your existing project. this issue popping up, you check Github issue .
However keep a message "rust-analyser failed to discover workspace". anyone suggest soluti… Hi, am to things Rust. . what understand, rust-analyzer to find Cargo.toml file. So, within VSCode. File > Add Folder Workspace. option bring a dialog window select folder .
(rust beginner) installing rust-analyzer, get output vscode: rust-analyzer failed to discover workspace versions: rustup 1.22.1 (b01adbbc3 2020-07-08) cargo 1.46.0 (149022b1d 2020-07-17) output rustup default .
Most often, vscode workspace a collection clones, several the nested clones Rust projects. Previously RLS (before switching rust-analyzer), the nested Rust projects automatically "discovered", I'd access all RLS tools time Rust file opened.
Hello there, about cargo based project not the root the workspace? are working a project has module written Rust, for now, have open VSCode at Cargo.toml level order rust-analyzer to handle properly, I the unable discover message. feels pretty obvious "why", I'm wondering there any plan .
Rust Analyzer a tool developing Rust code, it fail discover workspace. Learn common and solutions this problem, as checking workspace path, dependencies, configuration.
How Sort Vector Rust Examples; Fix: error: not find `Cargo.toml` Users any parent directory; to uninstall Rust Language Mac/Linux/Ubuntu; to update Cargo (Rust Lang) Fix: rust-analyzer failed to discover workspace [Visual Studio Code] to install Rust rustup macOS/Linux/Ubuntu
I installed Rust Analyser, it can't cargo rustc: [ERROR rust_analyzer::main_loop] FetchWorkspaceError: rust-analyzer failed to load workspace: Failed to load project Failed to query rust toolchai…
rust-analyzer failed to discover workspace know the of problem that loaded Tauri project my workspace VSCode does have Cargo.toml its project root, in Rust-related sub-directory src-tauri .
Because rust-analyzer recognize the folder only single file "main. rs" a rust project, initialization project be created cargo. cargo study1 👍 3 achuthaperumal, GalacticOctopus, NicoCaro-io reacted thumbs emoji
Rust Analyzer Fails To Discover Workspace: A Troubleshooting Guide