nova-rust icon indicating copy to clipboard operation
nova-rust copied to clipboard

[QUESTION] Where does the extension look for cargo, rustc etc?

Open ryanbooker opened this issue 2 years ago • 1 comments

I have the rust development environment installed via a nix flake and inserted into the environment with direnv.

I'm very new to rust, you could count the days on one hand, so I don't know if the two are related and it's almost certainly my fault, but I see the following error:

Error: Failed to load workspace

There is definitely a Cargo.toml in the root of the project.

ryanbooker avatar Jan 08 '24 08:01 ryanbooker

I'm not a Nix user, so I'm not sure how helpful I can be. The error above is from Rust Analyzer and I believe RA generally assumes that cargo and rustc are on your $PATH. If you type which cargo into a Nova terminal, does it find your Nix environment?

kilbd avatar Jan 09 '24 02:01 kilbd