Error in $.params.processId: parsing Int32 failed, expected Number, but encountered Object #3340
Labels
component: lsp
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
Which OS do you use?
MacOS 12.6.1
Which version of GHC do you use and how did you install it?
9.0.2 from ghcup
How is your project built (alternative: link to the project)?
stack (resolver: lts-19.33) - ghc 9.0.2
Which LSP client (editor/plugin) do you use?
emacs+eglot (but the same happens on lsp-mode)
Which version of HLS do you use and how did you install it?
1.8.0.0 from ghcup
Have you configured HLS in any way (especially: a
hie.yaml
file)?Steps to reproduce
Create new project with
stack new my-project new-template
.Adjust resolver to lts-19.33
Open project with emacs and load eglot.
Expected behaviour
LSP server should connect to haskell-language-server and do its thing.
Actual behaviour
The client indeed connects to the server, but it crashes whenever you try to use it.
For instance, open
src/Lib.hs
and hover over theputStrLn
usage to get typing information and the server crashes with a message similar toServer lsp-haskell:32993/starting exited (check corresponding stderr buffer for details). Do you want to restart it? (y or n)
Restarting the server makes it work for a few seconds and crash again in the same manner.
Not sure if the issue is related to haskell-language-server itself or the emacs client.
The VS Code extension works fine in the same project taking the same server from ghcup.
Debug information
stderr output
Notice the error in the last line.
LSP log: lsp-haskell:32993
Notice the
processId: null
at the beginning.In that specific session haskell-language-server had pid 32993.
Emacs config
Relevant snippet from my emacs config file
The text was updated successfully, but these errors were encountered: