Adding one empty import causes "Unexpected usage error" #1687
Labels
component: ghcide
status: needs info
Not actionable, because there's missing information
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Which OS do you use:
ArchLinux
Which lsp-client do you use:
VSCode (
code
executable).haskell-language-server-1.0.0-linux-8.10.4
executable is installed by VSCode.Describe your project (alternative: link to the project):
https://github.com/serokell/edna/tree/gromak/vscode-error/backend (this specific branch)
Contents of
hie.yaml
:Steps to reproduce
Expected behaviour
No "Unexpected usage error" errors.
Actual behaviour
There are such errors in logs:
Then it says:
And eventually:
Notes
import Servant.Util ()
in theEdna.Util
module, everything works..so
libraries, maybe something is wrong with my system. However, since it happens when I just add one import (import Servant.Util ()
), I suspect the problem might be on the HLS side. And I saw similar errors reported in other issues.hie.yaml
to usestack
. In this case VSCode launcheshaskell-language-server-1.0.0-linux-8.10.3
(not 8.10.3), but I get the same errors.haskell.haskell
VSCode extension and it's listed among officially supported ways to install HLS in the README.Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
The text was updated successfully, but these errors were encountered: