Nix Rust | 672 Members | |
| Rust | 149 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Feb 2026 | ||
| 03:17:22 | ||
| 15:21:19 | ||
| 15:24:36 | ||
| 17:48:01 | ||
| 17:48:39 | ||
| 17:51:25 | ||
| 17:51:43 | ||
| 18:00:12 | ||
| 20:02:41 | ||
| 23:00:57 | ||
| 13 Feb 2026 | ||
| 10:19:53 | ||
| 18:48:26 | ||
| 18:48:41 | ||
| 18:49:05 | ||
| 14 Feb 2026 | ||
Anyone have issues with VSCode's rust-analyzer on Nix in VSCode? I have a direnv set to use the flake, with the Rust I want to use installed, and vscode runs the extensions with it too. But yet, it seems to be a version mismatch, even with all my testing telling me they're both 1.95 | 04:36:39 | |
| I tried enabling the RA feature in my flake and telling vscode to use that rust-analyzer instead, still to no avail.. :/ | 04:37:10 | |
| No clue, but did you try to do a cargo clean and rebuild everything from scratch? | 14:01:48 | |
| Dozens of times. This has been happening for days. It makes my editor almost unusable haha Also it seems to recompile dependencies every time I run cargo build, so there's definitely a second compiler version in there... | 14:03:00 | |
| Hmm, uhh I think cargo/rustc might put metadata in the built artifacts. Does that contain something useful to find the culprit? | 14:05:47 | |
| Hm, good idea | 14:08:25 | |
In reply to @logn:zirco.devSilly question, but what does your path / (dev)shell.nix look like? | 18:06:04 | |
| * Silly question, but what does your $PATH / (dev)shell.nix look like? | 18:13:31 | |
| https://github.com/zirco-lang/zrc/blob/main/flake.nix | 18:13:32 | |
| The metadata agreed the rustc version I thought was what seemed to be building but idk how that affects cargo check or the RA server | 18:13:58 | |
| I previously didn't add the rust-analyzer feature because it worked until recently with no change afaik | 18:14:30 | |
echo $PATH in vscode, check that your settings.json isn't doing odd thing etc. | 18:14:53 | |
Use direnv and point it at your flake.{nix,lock} | 18:15:32 | |
| Nothing special about it in my settings afaik, I'll check the PATH when I get home. I use direnv, both the VSCode extension and for my shells | 18:16:16 | |
| You can also try to provide cargo and rust from the overlay, by pointing them at variables given by rust-overlay :) there's a lot to try here, so I think you'll find something | 18:18:05 | |
| hopefully yea, i'll give it a try | 18:26:59 | |