Skip to content

Commit

Permalink
Address invalid byte sequence error (#1022)
Browse files Browse the repository at this point in the history
Closes #1009
  • Loading branch information
felixlinker authored Dec 21, 2023
1 parent 801e99f commit 30dffdd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ Now make sure to remove cached/installed libraries to avoid getting segfaults at
As a final workaround, you can try to compile HLS from source (the extension should pick it up) via ghcup, see [https://haskell-language-server.readthedocs.io/en/stable/installation.html#ghcup](https://haskell-language-server.readthedocs.io/en/stable/installation.html#ghcup). In any case, the recommended approach is to let GHCup install the GHC binaries.
#### `hGetContents: invalid argument (invalid byte sequence)`

This problem was encountered on darwin M2 with ghcup.
Should you see the error that the "Haskell server crashed 5 times in the last 3 minutes," you can check the Haskell output to see whether this was due to an error mentioning `hGetContents: invalid argument (invalid byte sequence)`.
If this is the case, setting `terminal.integrated.detectLocale` to `off` might resolve your issue.

#### Using an old configuration

If something just doesn't work, but you recall an old configuration that did, you
Expand Down

0 comments on commit 30dffdd

Please sign in to comment.