kilbd / nova-rust

A Rust extension for the Nova text editor, using the Rust Analyzer language server.
MIT License
29 stars 5 forks source link

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

Open ryanbooker opened 8 months ago

ryanbooker commented 8 months ago

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.

kilbd commented 8 months ago

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?