Closed xffxff closed 1 year ago
Could you try my PR at https://github.com/DeterminateSystems/riff/pull/171 and see if this fixes it for you? There are instructions in the PR body, but I'm happy to help further if they are unclear.
If rust-analyzer
works for you outside of riff shell
, this PR should make it work for you inside as well.
@cole-h Yes, it works for me. But it uses the rustc I installed on my system, not the nix store.
That is to be expected. Is this undesirable for you?
The idea is to rely on the user's Rust setup so that any configuration that has been done (e.g. in order to get rust-analyzer working) will be carried over with ease. This also means it's easy to support rust-toolchain.toml
files (like in https://github.com/DeterminateSystems/riff/issues/147), because the user-installed rustup
will handle that for us.
This is ok for me. Thanks for the explanation @cole-h , I originally thought that riff wanted to use the rustc
installed by nix like other tools like cargo2nix
OS: wsl2 (ubuntu 22.04)
Riff version: 1.0.0
Things I tried to run:
riff shell
and then open VSCode from the shellit gets an error like
I got the same error a few days ago when trying to use nix, which was fixed by adding
rust-src
to extensions.