You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using rust-analyzer with vscode and the rustlings project on a windows machine I get the following warning from rust-analyzer:
Failed spawning proc-macro server for workspace D:\my\path\to\rustlings\rust-project.json: no sysroot
I don't know if it matters, in terms of reproducing the issue, but I'm using a custom directory for rustlings and have it opened along with other rust-projects in the same vscode workspace.
I tried my best to look for a misconfiguration, reinstalled rustup and rustlings as per recommendation but it did not resolve it.
Finally I was able to fix it by adding the toolchain-path as sysroot property into the generated rust-project.json, as follows:
rustc --version
:rustlings --version
:OS info:
While using rust-analyzer with vscode and the rustlings project on a windows machine I get the following warning from rust-analyzer:
I don't know if it matters, in terms of reproducing the issue, but I'm using a custom directory for rustlings and have it opened along with other rust-projects in the same vscode workspace.
I tried my best to look for a misconfiguration, reinstalled rustup and rustlings as per recommendation but it did not resolve it.
Finally I was able to fix it by adding the toolchain-path as
sysroot
property into the generatedrust-project.json
, as follows:So my suggestion is to include the sysroot in the generated
rust-project.json
file.The text was updated successfully, but these errors were encountered: