emacs-lsp / lsp-haskell

lsp-mode :heart: haskell
https://emacs-lsp.github.io/lsp-haskell
GNU General Public License v3.0
227 stars 56 forks source link

Only able to run over TRAMP with lsp-log-io set to t #127

Closed nosewings closed 3 years ago

nosewings commented 3 years ago

Emacs 27; this is the relevant section of my init:

(lsp-register-client
  (make-lsp--client
    :new-connection (lsp-tramp-connection (lambda () (lsp-haskell--server-command)))
    :major-modes '(haskell-mode haskell-literate-mode)
    :server-id 'lsp-haskell-remote
    :initialized-fn (lambda (workspace)
                      (with-lsp-workspace workspace
                        (lsp--set-configuration (lsp-configuration-section "haskell"))))
    :language-id "haskell"
    :completion-in-comments? t
    :remote? t))

(with-eval-after-load "tramp"
  (add-to-list 'tramp-remote-path 'tramp-own-remote-path))

If I try to edit a file over SSH, I get a message that the LSP server exited. The output at /tmp doesn't give any useful information; it seems to just report that the server started successfully. Weirdly, when I set lsp-log-io to t, the server actually runs. This is a good thing, but it also makes it hard to figure out what's going wrong.

yyoncho commented 3 years ago

most likely duplicate of https://github.com/emacs-lsp/lsp-mode/issues/2709

nosewings commented 3 years ago

Ah, so it is.