Open suhdonghwi opened 4 years ago
Is there auto-save or something? Or is it unsaved?
I manually saved the file before closing and reopening it.
Can not reproduce with vscode on nixos with hie-8.6.5 on a cabal project.
Can you add more information? What is the hie
version, which one is used, what type of project, operating system, lsp-client and are you sure there are no other plugins active?
This is the output of hie --version
:
Version 1.0.0.0, Git revision 4bec07d79cf77c8ee855957d20e315a89f799d75 (3745 commits) x86_64 ghc-8.6.5
I run it in Windows Subsystem for Linux, Ubuntu 18.04 LTS. Language server client is VSCode (WSL remote development) Haskell Language server extension. (But this problem also happens in neovim coc.nvim) There are no other Haskell related plugins active.
Can you provide the logs? If possible with --debug
enabled. Either in vscode with File > Preferences > Settings > Haskell Language Server > Language Server Haskell > Trace: Server
set to verbose
or by invoking the hie/hie-wrapper process with the arguments hie --lsp --debug
/hie-wrapper --lsp --debug
This is my log reproducing the bug: https://pastebin.com/ZRYwWn1H
And at the end errors were shown in the file Expr.hs
?
Yes. But after reopening, if I edit anywhere and save the file again, errors disappear.
I can reproduce this error on windows as well, not reliably, but encountered it several times now. I suspect some caching issue, but I did not dig into it, yet.
Steps to reproduce
This is my output of
hie-wrapper --version
: