`rust-analyzer` not found
mrcnski opened this issue · 4 comments
rust-analyzer
was not installed for me automatically, although it seems to be the default lsp-server for Rustic.
I had to go here and manually install it:
https://rust-analyzer.github.io/manual.html#installation
I also needed to change the client before everything finally worked:
(setq rustic-lsp-client 'eglot)
The Readme should be updated to mention these fixes in Installation
as well as Troubleshooting
. I spent a lot of time scouring the web to find out about these fixes.
Dropping this here in case it helps someone else.
I understand that it can be confusing with all the different packages, but automatic server installation is a lsp client feature. rustic only provides some code that's supposed to simplify setting up lsp.
I'm not sure why you had to use eglot, but sometimes rust-analyzer changes options that then has to be updated in lsp clients like emacs-lsp/lsp-mode@d117866
Thanks for helping others this way, but I'm often not sure how to document this kind of issues so it's helpful for other users. Do you think this would have helped you #409 ?
Hi @brotzeit, thanks for taking a look. The doc changes look great, though I still have a request. I would have expected a note about manual installation in the Installation
section. And perhaps also a clarification on the phrase
most stuff gets configured automatically.
which led me to believe that rustic
would install everything needed. So, adding a quick note here linking to the "LSP automatic installation" section would go a long way to alleviating confusion.
Thanks again!
I'll raise a quick PR.
That would be great, thanks.