rust-analyzer can't find rust.lld.exe #20287
-
I've been trying to get a rust workspace up and running on Windows 11 in VSCode so I can tinker with some stuff, but no matter what I do, the rust-analyzer extension spits out a cascading list of the same error, basically saying it can't find the rust.lld.exe linker and thus can do nothing. In essence it's this, a few dozen times, with notes about whatever build script couldn't be run strewn in. (I've attached the text output of the log if you want to look, it is just the same error over and over again, however.)
I have confirmed that the rust linker is present at the expected path, and added to my $PATH variable like it's supposed to be. I have double checked the visual studio installation is correct (it is). I've also completely scrubbed Visual Studio, its build tools, VSCode and my rust installation completely, and started over from scratch, with no luck. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Do you have the linker set somewhere in your Cargo config? |
Beta Was this translation helpful? Give feedback.
Alright, somehow settings.json in VSCode got
To my knowledge I didn't do that, maybe I ran a script that added that incorrectly by accident, but changing it to rust-lld.exe fixed the issue. Sorry for the morning noobery.