Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust-analyzer support #72

Open
chrisguida opened this issue Dec 6, 2023 · 4 comments
Open

Rust-analyzer support #72

chrisguida opened this issue Dec 6, 2023 · 4 comments

Comments

@chrisguida
Copy link

How can I add extensions to vscode-server such as rust-analyzer?

This would be amazing as I would be able to use rust-analyzer while coding on a remote machine.

@samuela
Copy link

samuela commented Apr 4, 2024

You can already do this just as with any other extension installation. Go to the "Extension Marketplace" and enable the rust-analyzer extension. It will auto-detect NixOS and make the appropriate adjustments.

@chrisguida
Copy link
Author

Hmm, this definitely didn't work when I tested. Is this a new feature?

@N-T-K
Copy link

N-T-K commented Apr 24, 2024

@chrisguida
Copy link
Author

@N-T-K thanks, that seems to have gotten me partly there

I now have this:

2024-04-25T19:19:36.599526Z ERROR rust_analyzer::main_loop: FetchWorkspaceError:
rust-analyzer failed to load workspace: Failed to load the project at /home/cguida/work/smaug/Cargo.toml: Failed to query rust toolchain version at /home/cguida/work/smaug, is your toolchain setup correctly?: cd "/home/cguida/work/smaug" && "cargo" "--version" failed: No such file or directory (os error 2)

cargo doesn't exist because it's inside nix develop. how can i fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants