hey folks, just had a very weird problem. i've solved it for now but still wanted to mention it here in case anyone else runs into it.
i've updated rust-analyzer (well,
xtask install) and opened a project that has a rust-toolchain file in vscode. rust-analyzer wasn't able to load anything and errored out with a message saying it couldn't execute
rustc --print cfg -O. turns out, i couldn't execute
rustc at all. since i'm on nixos, i assumed this was because of some weird libc issue, which would still be surprising because i haven't touched this toolchain at all and all others worked fine. well, long story short, i tried a bunch of stuff but in the end i needed to uninstall and reinstall the toolchain, as well as rust-src (which I swear RA was able install by itself at some point).
I thiknk a possible explanation here is that
rustup patchelfs installed toolhcains on NixOS, and, if something like a path to interpreter changes, I think that patching might become obsolete
I, I feel
rustup install tolchain X; sleep 10**6; sudo nixos-rebuild switch --upgrade; rustc +X --version --verbose might fail in theory
that sounds very plausible! i'm tempted to try this now but i kinda need this computer to work for a few more hours :sweat_smile: