Is there a way to allow rust-analyzer to work on nightly? #7987
-
I tried to sort of follow the rust-analyzer # mimicking this: { "rust-analyzer.server.extraEnv": { "RUSTUP_TOOLCHAIN": "stable" } }
[language-server.rust-analyzer.server.extraEnv]
RUSTUP_TOOLCHAIN = "nightly" But that didn't work out. Also, it doesn't work for the beta toolchain either. Anyone have a solution to this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Afaik either use nightly toolchain (for all) or don't install ra via rustup (install separately). |
Beta Was this translation helpful? Give feedback.
-
Whoops it looks like I made a mistake, I downloaded rust analyzer only on my stable toolchain and not on my nightly toolchain. Do either this for global rustup default nightly
rustup component add rust-analyzer Or in a specific directory: rustup override set nightly
rustup component add rust-analyzer As long as you're on a nightly toolchain, add rust analyzer to that. My mistake is that I thought |
Beta Was this translation helpful? Give feedback.
Whoops it looks like I made a mistake, I downloaded rust analyzer only on my stable toolchain and not on my nightly toolchain.
Do either this for global
Or in a specific directory:
rustup override set nightly rustup component add rust-analyzer
As long as you're on a nightly toolchain, add rust analyzer to that. My mistake is that I thought
rustup component add _
adds for all toolchains.