Skip to content

Commit 7864fd4

Browse files
gcvyyoncho
authored andcommitted
Update documentation for TRAMP configuration wrt stderr redirection. (#919)
1 parent f807e12 commit 7864fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.org

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@
231231
:remote? t
232232
:server-id 'pyls-remote))
233233
#+END_SRC
234-
234+
**** Dealing with stderr
235+
With TRAMP, Emacs does not have an easy way to distinguish stdout and stderr, so when the underlying LSP process writes to stderr, it breaks the ~lsp-mode~ parser. As a workaround, redirect stderr to ~/dev/null~ in the shell code, e.g. use the following ~:new-connection~ argument in the ~make-lsp-client~ call: ~(lsp-tramp-connection "/path/to/server 2>/dev/null")~.
235236
** Limitations
236237
*** File watches
237238
When some of the workspaces that are active in the current project requests file notifications via ~workspace/didChangeWatchedFiles~ ~lsp-mode~ will start monitoring each of the folders in the workspace for changes. In case your project contains a lot of files you might want to disable file monitoring via ~lsp-enable-file-watchers~ (you may use dir-locals).

0 commit comments

Comments
 (0)