Update lsp-tramp-connection #2531
Conversation
Copy the implementation that Michael Albinus suggested when graciously helping people understand why lsp wasn't working over tramp. https://lists.gnu.org/archive/html/emacs-devel/2020-12/msg00896.html replacing start-file-process-shell-command with make-process and moving from binary encoding to none. > One disadvantage is, that direct asynch processes work only with the upcoming Tramp 2.5 (that's already in Emacs master), and it works only if the asynchronous process does not require password handling. The latter is true, if your ssh authentication is based on keys, or if you use Tramp's control master arguments (enabled by default).
97052ae
to
24210cb
In the author's experience, tramp 2.5.0-pre worked fine with old and new implementation of lsp-tramp-connection. From the bug reports, reddit messages and other information, it looked like emacs27.1 + tramp >2.5.0-pre works fine Added a Troubleshooting section to the remote doc with examples of the errors. Suggested solution and tips to debug other remote LSP errors.
24210cb
to
fe45fe9
Looks good. |
(defvar tramp-connection-properties) | ||
(when (version< "2.5.0-pre" tramp-version) | ||
(lsp-warn | ||
"Your tramp version - %s - might fail to work with remote LSP. Update to tramp-2.5 for tested reliability improvements" |
yyoncho
Jan 17, 2021
Member
can you change the wording to mention that you can install that version from elpa?
can you change the wording to mention that you can install that version from elpa?
;; wrap with stty to disable converting \r to \n | ||
(let* ((final-command (lsp-resolve-final-function | ||
local-command)) | ||
(_stderr (or (when generate-error-file-fn |
yyoncho
Jan 17, 2021
Member
this should be appended to the command. Otherwise, the stderr will end up on stdout. (Unless this is fixed in the latest tramp).
this should be appended to the command. Otherwise, the stderr will end up on stdout. (Unless this is fixed in the latest tramp).
petr-tik
Jan 17, 2021
Author
what do you mean by this
here?
what do you mean by this
here?
yyoncho
Jan 18, 2021
Member
_stderr
_stderr
Copy the implementation that Michael Albinus suggested when
graciously helping people understand why lsp wasn't working over tramp.
https://lists.gnu.org/archive/html/emacs-devel/2020-12/msg00896.html
This replaces start-file-process-shell-command with make-process
and moving from binary encoding to none.
Added a Troubleshooting section to the remote doc with examples
of the errors. Suggested solution and tips to debug other
remote LSP errors.