-
Notifications
You must be signed in to change notification settings - Fork 91
Description
Tramp remote for LSP is described here: https://emacs-lsp.github.io/lsp-mode/page/remote/
This issue explains that lsp-java is not yet expected to work over tramp, but the issue is for some reason closed: #149. Important bits from that issue:
making lsp-java to work over tramp is a big task - there are a lot of paths that have to be translated to be remote. Also, there is a lot of code that assumes that there is only one instance of 'jdtls server. One should start with lsp-register-client call and gradually migrate each of the local paths to be remote.
lsp-mode will perform the path translation when you do normal lsp stuff like go to definition, find references, etc. But on top of what lsp protocol has jdt-ls server has some requirements - for example, there is custom initialization setting lsp-java-workspace-dir. There is no way lsp-mode to know that it shoul translate that. Also, when you go to reference which is in jar lsp-java calls the server and then stores the file in lsp-java-workspace-cache - this should be also fixed to work with tramp.