Prerequisite check(s) failed - Rust installation is corrupted
Closed this issue · 15 comments
I am trying to use this extension. I have the latest VS 2022 11.2 and I am getting the following error
I have installed rustup and it is accessible from my terminal as is cargo, but I continually get this screen then if I close the window it puts visual studio into a weird loop where:
1: I close the window
2: automatically opens the browser to the github prerequisites markdown
3: automatically forces visual studio to close
4: automatically opens visual studio
5: shows this error
6: GOTO 1
I can break the loop by opening a new project in a seperate window then close the first window without interactive with the dialog using the task manager and ending the task tree
I'm unsure of how to diagnose what the extension can't find or why. Any thoughts on how I might get some diagnostic info, or what might be wrong?
@chaseaucoin Is rustup.exe available on the path? as in if you open a vanilla cmd prompt and run rustup, what do you get?
Same issue here since the last update. Yes - rustup is in the path. Re-installing rust does not help. Re-installing the extension does not help. Rust compilation from the command line works fine.
thanks guys. investigating, should have a fix soon.
pushing out a hotfix disabling that particular check. not really sure whats going on. works on my machine lmao. will need to try out install on a fresh VM.
https://github.com/kitamstudios/rust-analyzer.vs/actions/runs/10679729911
new update with the working around v3.0.202 is published.
pls lmk how it goes https://marketplace.visualstudio.com/items?itemName=kitamstudios.RustAnalyzer&ssr=false#overview
This fixes the problem. It still says "rust-analyzer.vs updated" (and more text) each time on opening.
Is there any information from my computer I can provide you with to diagnose the "Prerequisite check(s) failed" problem?
@jvbaten is that the prereq check failed dialog or the infobar on the top?
if it is the infobar, you can just click dismiss & it won't show up again till next update.
Infobar. And yes, I noticed. Sorry about that.
Let me know if you need me to provide diagnostics on the other issue.
can you give me a screenshot of the output of rustup show --verbose
. as is.
rustup show --verbose
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\jasper.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\{redacted}\.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
@chaseaucoin @jvbaten thanks guys i see the problem. the format is different if you have multiple vs 1 toolchains installed. i have like 5.
i have to parse console output bcos rustup doesnt have json output.
will fix this shortly. impact for you will be mostly the rustup toolchain install / set tools (new in this release) wont work,
Hey @unrenormalizable any update on this one? 😄
@kanerogers i had already pushed in the fix 5d1d3cf for that. what issue are you facing?
logs from the r-a.vs output window and screenshots please.
Oh! Was just noting that the issue was still open. 👼🏻