-
Notifications
You must be signed in to change notification settings - Fork 897
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
rustup component add rust-analyzer-preview does not add rust-analyzer executable to ~/.cargo/bin #2411
Comments
This is the expected behaviour at this point. #2408 added the proxy but I'm considering if it ought to be in |
The next release of |
I see. |
Note that this change was backed out in 1.23 because |
Now that the rust-analyzer is officially announced as default LS, will the binary be installed to default location in next release? |
According to the rust-lang blog post from Sept 22, 2022, rust-analyzer is now available via rustup. The following works for me:
According to the blog post, "The next release of rustup will provide a built-in proxy so that running the executable |
I love this, I also got it running on helix with a custom |
@janos-r I actually didn't get |
@lesleyrs This wrapper script may help, put it in
|
@zackw Nice tip! Only My complete version of
|
Works like a charm. Sry I didnt see your message sooner. In the next release it should be part of the path automatically already tho. This above is just temporarily necessary before that. |
@janos-r Ok I found out why it wasn't working without path, I used that same line but in helix directory languages.toml not the user directory one. I guess you have to recompile to change the former? Thanks :D |
So, one of the things that's valuable about the proxies in a well-defined (and PATH-exposed) location is that they take advantage of rustup honoring the Is there a good workaround for this other than the shell script someone posted above? |
Maybe we could get |
FWIW this became relevant to me rather suddenly when |
Will we eventually get this working out of the box? |
I don't think it's appropriate for this bug to be closed when the feature it requests is accepted but not yet delivered. |
@lunasophia what do you mean? Rustup-init installs a rust-analyzer proxy in current versions. If you've installed the rust-analyzer component, it should just work. So the feature is delivered. If you've got specific failures or errors, please file a new bug. I'm locking this now, since we're getting noise, and the appropriate thing to do is to file a new bug, not resurrect a closed, fixed, bug. |
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
Possible Solution(s)
Notes
Output of
rustup --version
:rustup 1.22.1 (b01adbbc3 2020-07-08)
Output of
rustup show
:The text was updated successfully, but these errors were encountered: