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

lsp fails to start #91

Closed kajus-park closed 3 years ago

kajus-park commented 3 years ago

When I try to start lsp following error message pops up: image

Eval: lsp-haskell-server-path "haskell-language-server-wrapper"

I am using doom Emacs with :tools lsp :lang (haskell +lsp +dante)

dante works fine, but I would like to have the lsp functionality too.

According to the README following should be sufficient :tools lsp :lang (haskell +lsp)

I have installed the server with ghcup. Executing haskell-language-server-wrapper in the terminal gives some output, which I assume looks like it works.

I would appreciate some advice on this topic.

michaelpj commented 3 years ago

Have you looked in lsp-log as the message suggests?

kajus-park commented 3 years ago

Embarrassingly I was not able to figure out how to enable the logging of that. When I do: M-x lsp-switch-to-io-log-buffer I get: IO logging is disabled

michaelpj commented 3 years ago

There should be a lsp-log buffer even without that.

kajus-park commented 3 years ago

I apologize for my stupidity. Yes the buffer was there. The command lsp-server-wrapper was not on path. doom/reload-env fixed that. Thank you for your patience.

michaelpj commented 3 years ago

No worries, glad you got it working!