LSP log continualy gets scattered with haskell-lsp:incoming message parse error
#1476
Labels
component: lsp
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Summary
Though it seems unharmful, the current LSP log of HLS 1.0.0 gets scattered with sporadic error telling:
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Which lsp-client do you use: VSCode
Describe your project (alternative: link to the project): simple exe-only project which is generated by
stack new foo simple
, containing the followingMain.hs
as the only module:Contents of
hie.yaml
: Nohie.yaml
needed; it's just a simple project.small-repro.cabal
:Steps to reproduce
Main.hs
Haskell
OutputExpected behaviour
No error nor warning.
Actual behaviour
Log containing several occurences the following error:
The attached log contains only a few errors, but when one runs HLS on a project with several modules and local deps, the number of error reported (and ignroed) becomes large.
Although there is no observable dysfunction related to this so far, it makes analysing LSP log relatively tedious.
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: