Skip to content

[BUG]: Win, VSCode extension cannot find the path #620

Closed

Description

@nsnans

Version
1.0.4

OS
Windows

Describe the bug
VSCode extension cannot find the path.

go
Failed to find the "go" binary in either GOROOT() or PATH(C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\170\Tools\Binn\;C:\Program Files\PowerShell\7\;C:\Users\pppp\AppData\Local\Android\Sdk\platform-tools;C:\Users\pppp\AppData\Local\Android\Sdk\emulator;F:\1\ks_cli;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\dotnet\;C:\Program Files\cursor\resources\app\bin;C:\Users\pppp\scoop\apps\vscode\current\bin;C:\Users\pppp\scoop\apps\postgresql\current\bin;C:\Users\pppp\scoop\shims;C:\Users\pppp\AppData\Local\Microsoft\WindowsApps;C:\Users\pppp\AppData\Local\JetBrains\Toolbox\scripts;C:\Users\pppp\AppData\Local\Pub\...
rust-analyzer
2026-01-28T16:11:51.8972938+08:00 ERROR failed fetching cargo workspace root e="C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "locate-project" "--workspace" "--manifest-path" "E:\\b\\tt\\Cargo.toml" failed, exit code: 1
stderr:
error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'
 cargo_toml=E:\b\tt\Cargo.toml
2026-01-28T16:11:55.3396194+08:00 ERROR failed fetching toolchain version for ManifestPath { file: AbsPathBuf("E:\\b\\tt\\Cargo.toml") } workspace e=Failed to query rust toolchain version via `"C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "--version"`, is your toolchain setup correctly?
2026-01-28T16:11:57.7178325+08:00  WARN failed to run `"C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "rustc" "-Z" "unstable-options" "--print" "cfg" "--" "-O"`, falling back to invoking rustc directly e="C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "rustc" "-Z" "unstable-options" "--print" "cfg" "--" "-O" failed, exit code: 1
stderr:
error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'

2026-01-28T16:11:57.7706637+08:00  WARN failed to run `"C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "rustc" "-Z" "unstable-options" "--print" "target-spec-json" "--" "-Z" "unstable-options"`, falling back to invoking rustc directly e="C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "rustc" "-Z" "unstable-options" "--print" "target-spec-json" "--" "-Z" "unstable-options" failed, exit code: 1
stderr:
error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'

2026-01-28T16:11:58.9124109+08:00  WARN failed to get rustc cfgs e=unable to fetch cfgs via `"C:\\Users\\pppp\\.cargo\\bin\\rustc.exe" "--print" "cfg" "-O"`

Caused by:
    "C:\\Users\\pppp\\.cargo\\bin\\rustc.exe" "--print" "cfg" "-O" failed, exit code: 1
    stderr:
    error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'
    

Stack backtrace:
   0: std::backtrace_rs::backtrace::win64::trace
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1: std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2: std::backtrace::Backtrace::create
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\backtrace.rs:331
   3: std::backtrace::Backtrace::capture
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\backtrace.rs:296
   4: anyhow::error::<impl anyhow::Error>::msg
   5: project_model::utf8_stdout
   6: project_model::toolchain_info::rustc_cfg::get
   7: std::sys::backtrace::__rust_begin_short_backtrace
   8: salsa::table::Table::fetch_or_push_page
   9: std::sys::thread::windows::impl$0::new::thread_start
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\sys\thread\windows.rs:59
  10: BaseThreadInitThunk
  11: RtlUserThreadStart
2026-01-28T16:11:58.9670856+08:00 ERROR failed fetching data layout for ManifestPath { file: AbsPathBuf("E:\\b\\tt\\Cargo.toml") } workspace e=unable to fetch target-data-layout via `"C:\\Users\\pppp\\.cargo\\bin\\rustc.exe" "-Z" "unstable-options" "--print" "target-spec-json"`
2026-01-28T16:11:58.9704212+08:00 ERROR FetchWorkspaceError: rust-analyzer failed to load workspace: Failed to load the project at E:\b\tt\Cargo.toml: Failed to read Cargo metadata from Cargo.toml file E:\b\tt\Cargo.toml, None: Failed to run `"C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "metadata" "--format-version" "1" "--manifest-path" "E:\\b\\tt\\Cargo.toml"`: `cargo metadata` exited with an error: error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'


2026-01-28T16:12:01.2330434+08:00 ERROR failed fetching cargo workspace root e="C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "locate-project" "--workspace" "--manifest-path" "E:\\b\\tt\\Cargo.toml" failed, exit code: 1
stderr:
error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'
 cargo_toml=E:\b\tt\Cargo.toml
2026-01-28T16:12:04.6703894+08:00 ERROR failed fetching toolchain version for ManifestPath { file: AbsPathBuf("E:\\b\\tt\\Cargo.toml") } workspace e=Failed to query rust toolchain version via `"C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "--version"`, is your toolchain setup correctly?
2026-01-28T16:12:07.0434531+08:00  WARN failed to run `"C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "rustc" "-Z" "unstable-options" "--print" "cfg" "--" "-O"`, falling back to invoking rustc directly e="C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "rustc" "-Z" "unstable-options" "--print" "cfg" "--" "-O" failed, exit code: 1
stderr:
error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'

2026-01-28T16:12:07.0835289+08:00  WARN failed to run `"C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "rustc" "-Z" "unstable-options" "--print" "target-spec-json" "--" "-Z" "unstable-options"`, falling back to invoking rustc directly e="C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "rustc" "-Z" "unstable-options" "--print" "target-spec-json" "--" "-Z" "unstable-options" failed, exit code: 1
stderr:
error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'

2026-01-28T16:12:08.1937524+08:00  WARN failed to get rustc cfgs e=unable to fetch cfgs via `"C:\\Users\\pppp\\.cargo\\bin\\rustc.exe" "--print" "cfg" "-O"`

Caused by:
    "C:\\Users\\pppp\\.cargo\\bin\\rustc.exe" "--print" "cfg" "-O" failed, exit code: 1
    stderr:
    error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'
    

Stack backtrace:
   0: std::backtrace_rs::backtrace::win64::trace
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1: std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2: std::backtrace::Backtrace::create
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\backtrace.rs:331
   3: std::backtrace::Backtrace::capture
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\backtrace.rs:296
   4: anyhow::error::<impl anyhow::Error>::msg
   5: project_model::utf8_stdout
   6: project_model::toolchain_info::rustc_cfg::get
   7: std::sys::backtrace::__rust_begin_short_backtrace
   8: salsa::table::Table::fetch_or_push_page
   9: std::sys::thread::windows::impl$0::new::thread_start
             at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library\std\src\sys\thread\windows.rs:59
  10: BaseThreadInitThunk
  11: RtlUserThreadStart
2026-01-28T16:12:08.2436461+08:00 ERROR failed fetching data layout for ManifestPath { file: AbsPathBuf("E:\\b\\tt\\Cargo.toml") } workspace e=unable to fetch target-data-layout via `"C:\\Users\\pppp\\.cargo\\bin\\rustc.exe" "-Z" "unstable-options" "--print" "target-spec-json"`
2026-01-28T16:12:08.2466058+08:00 ERROR FetchWorkspaceError: rust-analyzer failed to load workspace: Failed to load the project at E:\b\tt\Cargo.toml: Failed to read Cargo metadata from Cargo.toml file E:\b\tt\Cargo.toml, None: Failed to run `"C:\\Users\\pppp\\.cargo\\bin\\cargo.exe" "metadata" "--format-version" "1" "--manifest-path" "E:\\b\\tt\\Cargo.toml"`: `cargo metadata` exited with an error: error: Missing manifest in toolchain '1.88.0-x86_64-pc-windows-msvc'


Screenshots[optional]
If applicable, add screenshots to help explain your problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions