I have mostly made my peace with NixOS today but this remains deeply frustrating https://discourse.nixos.org/t/rust-analyzer-in-a-nix-shell-vscode-failed-to-build-proc-macro/57474
Rust-analyzer in a nix shell + vscode, "failed to build proc-macro"

Hi, I’ve recently moved to NixOS on my main computer after trying it on my server and come across a problem with my Rust + Bevy project. I use a flake to manage system dependencies and the rust toolchain as well as rust-analyzer. Using flake-compat I have a shell.nix that I can use with the nixEnvSelector code extension which seems to work fine. rust-analyzer is erroring everywhere I use proc macros with error: “failed to build proc-macro”. There are a bunch of errors in the logs that look lik...

NixOS Discourse