Problem
I can install rust-analyzer using rustup component add rust-analyzer-preview but it is not added to ~/.cargo/bin like all other components (clippy, rustfmt, ...) and therefore not in the path and not executable.
Steps
1.
2.
3.
Possible Solution(s)
Notes
Output of rustup --version: rustup 1.22.1 (b01adbbc3 2020-07-08)
Output of rustup show:
Default host: x86_64-unknown-linux-gnu
rustup home: /home/user/.rustup
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu
beta-x86_64-unknown-linux-gnu
nightly-2020-03-19-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)
1.37.0-x86_64-unknown-linux-gnu
installed targets for active toolchain
--------------------------------------
wasm32-unknown-unknown
x86_64-unknown-linux-gnu
active toolchain
----------------
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.46.0-nightly (5db778aff 2020-07-09)
This is the expected behaviour at this point. #2408 added the proxy but I'm considering if it ought to be in TOOLS or DUP_TOOLS because people have installed it via other means before now. For now, as per people who have talked about it, you can run rust-analyzer via rustup run nightly rust-analyzer which you can always set up as a shell alias if you want, or a small shell script if you so desire.
The next release of rustup will contain the proxy either way.
I see.
Feel free to close.
Note that this change was backed out in 1.23 because rust-analyzer isn't stable yet:
https://github.com/rust-lang/rustup/pull/2408#issuecomment-734899954
Most helpful comment
The next release of
rustupwill contain the proxy either way.