Lsp-mode: Run lsp-mode in Tramp buffers

Created on 25 Nov 2017  路  6Comments  路  Source: emacs-lsp/lsp-mode

I've been poking around a bit at lsp-mode to see what it would take to integrate it with Tramp. Blocker right now is that the call to (make-process) doesn't have any Tramp hooks.

Other packages use start-file-process to pick up Tramp support, but that function doesn't support stderr-separation. Might need to get more creative for lsp-mode.

enhancement

Most helpful comment

I will start working on this when I have time since this is the most up-voted issue.

All 6 comments

Probably we should add a file name handler for make-process to Emacs core and Tramp, similar to what start-file-process does.

Will be nice to have this feature.

Has anyone ever used this?

(defun lsp--make-tcp-connection (name command command-fn host port stderr)

Any news on this?

I am not sure whether start-file-process could do the job. At this point I believe it is feasible to make this work by doing:

  1. Use TCP LSP Client. When the such is not present use nc to pipe stdin/stdout as a TCP socket.
  2. Change lsp--path-to-uri and lsp--uri-to-path to handle tramp buffers.

https://github.com/emacs-lsp/lsp-mode/pull/528 blocks 1.

I will start working on this when I have time since this is the most up-voted issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bradprob picture bradprob  路  5Comments

yyoncho picture yyoncho  路  5Comments

raxod502 picture raxod502  路  4Comments

rsuhada picture rsuhada  路  3Comments

MaskRay picture MaskRay  路  5Comments