Skip to content
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

Will this work over tramp? #30

Open
marcSoda opened this issue Dec 6, 2024 · 3 comments
Open

Will this work over tramp? #30

marcSoda opened this issue Dec 6, 2024 · 3 comments

Comments

@marcSoda
Copy link

marcSoda commented Dec 6, 2024

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.

@blahgeek
Copy link
Owner

blahgeek commented Dec 7, 2024

Hello,

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

@marcSoda
Copy link
Author

marcSoda commented Dec 8, 2024

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.

@jdtsmith
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants