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

Support working remotely over TRAMP #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jagot
Copy link

@jagot jagot commented Apr 12, 2023

Closes #39.

I have added a small section in the README on how to use this. It seems to work well for me.

@ffevotte
Copy link
Collaborator

Thanks for that nice addition!

If I understand correctly, eglot-jl needs to be "installed" somewhere on the remote system. But users can't do this using package managers and such, which presumably means that the easiest (the only?) way would be to clone the git repository (as you mentioned in #39). Do you think this could be mentioned in the README paragraph?

Also, do you think there could be a risk of things failing if the locally installed version of eglot-jl falls out-of-sync with the remote one? AFAIU, eglot will use e-lisp code from the locally installed eglot-jl, but the julia code used to start the LanguageServer will come from the remote system.

@jagot
Copy link
Author

jagot commented Apr 13, 2023

If I understand correctly, eglot-jl needs to be "installed" somewhere on the remote system. But users can't do this using package managers and such, which presumably means that the easiest (the only?) way would be to clone the git repository (as you mentioned in #39). Do you think this could be mentioned in the README paragraph?

Good point, I will do so.

Also, do you think there could be a risk of things failing if the locally installed version of eglot-jl falls out-of-sync with the remote one? AFAIU, eglot will use e-lisp code from the locally installed eglot-jl, but the julia code used to start the LanguageServer will come from the remote system.

Yes, that is in principle true, but eglot-jl.el does not have much code, it is basically just a convenience wrapper around eglot that sets the appropriate variables, so I don't think it is a problem in practice.

@non-Jedi
Copy link
Owner

Thanks for the contribution! I haven't had time to review yet but will try to do so in the coming weeks. Something I ran across this week which might be interesting to you: it's apparently possible to run the language server on your home system while using tramp to edit something remotely.

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

Successfully merging this pull request may close these issues.

TRAMP support?
3 participants