Skip to content

no sysroot error using rust-analyzer with vscode #1996

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

Closed
ryan-kipawa opened this issue Jun 19, 2024 · 1 comment
Closed

no sysroot error using rust-analyzer with vscode #1996

ryan-kipawa opened this issue Jun 19, 2024 · 1 comment

Comments

@ryan-kipawa
Copy link

Hi,

I've been trying to use rustlings on my macbook together with vscode and the rust-analyzer extension. I can install and run rustlings no problem, however, the rust-analyzer extension gives the following error message:

Failed spawning proc-macro server for workspace `/Users/ryan/rustlings/rust-project.json`: no sysroot

I already ran rustlings lsp per the installation instructions. I've also tried several things suggested on stack overflow and other places but without luck. Here's a few specs:

OS: macOS Monterey 12.7.4
rustlings: 5.6.1
rust-analyzer (vs code extension): v0.3.2002
vs-code: 1.90.1

Thanks for your help :)

@mo8it
Copy link
Contributor

mo8it commented Jun 19, 2024

Duplicate of #1981

I will try to hurry up with releasing version 6 which will fix this problem. Until then, you could manually add sysroot to project.json as described in #1981.

@mo8it mo8it closed this as completed Jun 19, 2024
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

2 participants