Skip to content

Commit 30dffdd

Browse files
authored
Address invalid byte sequence error (#1022)
Closes #1009
1 parent 801e99f commit 30dffdd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ Now make sure to remove cached/installed libraries to avoid getting segfaults at
266266
267267
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.
268268
269+
#### `hGetContents: invalid argument (invalid byte sequence)`
270+
271+
This problem was encountered on darwin M2 with ghcup.
272+
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)`.
273+
If this is the case, setting `terminal.integrated.detectLocale` to `off` might resolve your issue.
274+
269275
#### Using an old configuration
270276

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

0 commit comments

Comments
 (0)