-
Notifications
You must be signed in to change notification settings - Fork 102
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
Making lsp work over tramp #361
Comments
I also didn't get this to work #337. But it seems it was working when the docs were added... |
@yyoncho sorry for the ping, I know you're quite busy. Do you see anything obvious that we don't notice ? |
Just to make sure that I am clear: with the above config lsp works (mostly) fine but it diverges a bit from the docs. Sometimes when the remote server dies the client is unable to restart it but I haven't been able to consistently reproduce it. |
One thing I would like to flag is that you likely need to have something like this stashed somewhere:
Otherwise, tramp completely blows away your path on the remote machine and finding rust-analyzer is unlikely to work. Figuring this out caused me quite a lot of grief. |
Unfortunately, lsp-mode doesn't seem to work with tramp. Hopefully somebody can fix this issue at some point. If you need to work with tramp the only option is eglot. |
Just wondering if there was any progress on this? I can confirm that the above code doesn't work for Emacs 29.1, and hoping maybe there was a new solution? |
(note: using DOOM emacs FWIW) I have this:
and when I open a |
I am not quite sure how obscure my case is but I had some trouble setting up lsp. I thought I would open this issue for posterity. The fundamental problem was two-fold: the rustic readme suggested using
lsp-stdio-connection
rather thanlsp-tramp-connection
when defining the remote server and that lsp itself is (probably) inconsistent w.r.t. when it usesexecutable-find
and when it doesnt. The solution was to adviseexecutable-find
to return the same string it receives when the argument is a remote executable path:Please advise on whether there is something more official that we can do with this information (and if more of it is required)
The text was updated successfully, but these errors were encountered: