-
Notifications
You must be signed in to change notification settings - Fork 41
Remote server solution #18
Comments
lsp-mode supports running servers over tramp(note that the server should be installed on the remote machine). If you want to have the server on the local machine and open file on the remote then use something like sshfs. Here it is a guide how to configure tramp with lsp-mode - https://github.com/emacs-lsp/lsp-mode#tramp-experimental |
@hek14 I'd love to make this client work over the network as well - I can experiment when I have some time, but the required changes may be as small as adding the @yyoncho marking a client as remote shouldn't affect it's behavior for local files, right? |
Yes. Generally registering a remote client with the proper path should be sufficient. |
Sorry for the late response. @andrew-christianson. I add the |
@hek14 you should make sure that |
@hek14 Hi, did you solve this problem? |
I was debugging this a bit (albeit in a separate issue) with @yyoncho. Right now, you need to manually specify the options for your remote connection it seems. For example, the following works:
I think the primary issue is that when setting Edit: Ah, apparently the function (exec-path) refers to the remote path whereas the variable exec-path refers to the local-path... confusing naming. This would explain why even with remote argument true, the function still isn't finding the virtualenv. |
Thank you for your great job to get lsp work well with Microsoft-python-language-server.
I have an issue with the lsp-python-ms: It works well on my local machine. Is there a method for starting a language server on a remote machine? When I open python files on a remote server with TRAMP, I get the error"LSP :: No LSP server for python-mode.".
The text was updated successfully, but these errors were encountered: