Skip to content

Instantly share code, notes, and snippets.

@rjohnsondev
Last active December 22, 2021 01:32
Show Gist options
  • Save rjohnsondev/1db7fe8cb65061dd3e9ef5fec77b4f62 to your computer and use it in GitHub Desktop.
Save rjohnsondev/1db7fe8cb65061dd3e9ef5fec77b4f62 to your computer and use it in GitHub Desktop.
error running haskell-language-server ghcup stack

When running haskell-language-server-wrapper directly from the command line within a stack project, we get an error like:

Hidden: no Range: 1:1-2:1 Source: cradle Severity: DsError Message: ghcide compiled by GHC 8.10 failed to load packages: : cannot satisfy -package-id aeson-1.5.6.0-DkwLMaMFAoKEbTeMR8x6ex (use -v for more information). Please ensure that ghcide is compiled with the same GHC installation as the project.

Solution appears to be to instead run stack exec haskell-language-server-wrapper for some reason.

This is crazy infuriating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment