-
-
Notifications
You must be signed in to change notification settings - Fork 414
Closed
Labels
build tool: stackcan-workaroundtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Description
TL;DR : en_US.UTF-8 vs C.UTF-8
I've solved this as being an error of the environment's LANG encoding, but it'd be nice if this were documented.
Problem:
$ stack ./install.hs hls-8.8.4
<<<...>>>
ghc-lib > Registering library for ghc-lib-8.10.4.20210206..
<stderr>: commitAndReleaseBuffer: invalid argument (invalid character)
<stderr>: commitAndReleaseBuffer: invalid argument (invalid character)
Progress 8/162Solution:
$ echo $LANG
en_US.UTF-8
$ LANG=C.UTF-8 stack ./install.hs hls-8.8.4Your environment
Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:
$ haskell-language-server --probe-tools
haskell-language-server version: 1.2.0.0 (GHC: 8.8.4) (PATH: ~/.local/bin/haskell-language-server) (GIT hash: 0d9ba1548a15c427963cde7f1635316c1d5ea179)
Tool versions found on the $PATH
cabal: 3.2.0.0
stack: 2.3.3
ghc: 8.8.3
Which OS do you use: Debian
Which lsp-client do you use: emacs
Metadata
Metadata
Assignees
Labels
build tool: stackcan-workaroundtype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..