emacs-lsp-booster icon indicating copy to clipboard operation
emacs-lsp-booster copied to clipboard

Will this work over tramp?

Open marcSoda opened this issue 11 months ago • 3 comments

LSP booster works great for me locally. I am wondering if there are any plans to get this working over tramp, specifically over SSH or into a docker container. If not, I might take a stab at it. I see the note on the readme saying that communication via local/remote network ports is unsupported.

Any info would be appreciated.

marcSoda avatar Dec 06 '24 14:12 marcSoda

Hello,

Can you please provide more information about how you use lsp over tramp? I'm not familiar with it.

blahgeek avatar Dec 07 '24 03:12 blahgeek

When using lsp over tramp, the lsp server is started on the remote machine instead of the local machine. At present, lsp booster only attempts to wrap the lsp server invocation in local environments. In theory, it should work over tramp if the lsp booster executable is installed on the remote machine. I'll do some tests later today and see how simple this would be.

marcSoda avatar Dec 08 '24 19:12 marcSoda

I wrote that note in the docs. But yes, in principle if you have the booster on remote, then you can simply update the remote executable to include the correct remote path to emacs-lsp-booster with all the appropriate arguments. The note pertains to running the booster locally on remote files, which is of course impossible [1].

[1] Unless you mirror those files locally and substitute the filenames on the fly, as is proposed by tramp-locproc.

jdtsmith avatar Jan 24 '25 21:01 jdtsmith