-
-
Notifications
You must be signed in to change notification settings - Fork 908
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
Command "rust-analyzer" is not present on the path. #3683
Comments
Use something like: |
@yyoncho I tried that and it isn't working for me. Originally I used this (from the Emacs Wiki):
I also tried your suggestion:
where Looking at the output of Does |
@andrewbanchich we are using
This one should add the directory containing rust analyzer, not the path to the binary. |
Ah, I see. That's working now! Thank you. |
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
When opening a Rust project, I get an error saying it can't find a language server for Rust and offering to install
rust-analyzer
automatically.*lsp-log*
contains:rust-analyzer
is already installed and works in my terminal.I've read the troubleshooting link about this regarding setting PATH, but what confuses me is that everything was working for a while, but suddenly stopped working (I didn't make any changes to my config). I think a package update might have broken something, so I figured I'd post here with some more info.
I have been using
nushell
(not POSIX compliant) as my default shell for several weeks without any issues on macOS. I then took some time off and switched to my Linux laptop, set up nushell as default there, and then ran into thislsp-mode
error. Because of that, I thought maybe it had something to do with my Linux machine or with how I configurednushell
. However, today I switched back to my Mac, opened Emacs, packages auto updated, and ran into the same error after opening a Rust project. That's why I think it might be an update that broke something.Steps to reproduce
I'm not sure since I don't know for sure what's causing it. I would assume setting
nushell
as default and using the latest version oflsp-mode
would reproduce the issue.Expected behavior
lsp-mode
finds existing language servers.Which Language Server did you use?
rust-analyzer
OS
MacOS
Error callstack
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: