commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.99k stars 842 forks source link

Unicode-outputting integration tests fail with --nix #3101

Open Fuuzetsu opened 7 years ago

Fuuzetsu commented 7 years ago

General summary/comments (optional)

new-package-names and 1337-unicode-everywhere fail with stack --nix

Steps to reproduce

stack --nix test --flag stack:integration-tests stack:stack-integration-test

Expected

Passing test

Actual

Main.hs: /home/shana/programming/stack/.stack-work/install/x86_64-linux-nix/lts-8.5/8.0.2/bin/stack: recoverEncode: invalid argument (invalid character) cabal file path /run/user/1000/stack-integration-1337-unicode-everywhere12842/stack-integration-test: <stdout>: commitBuffer: invalid argument (invalid character)

Might want to set locale &c. in shell.nix or similar such fix.

Stack version

4abb06db83bda2103255c8812989520d17be332e

Method of installation

hacking in repo

qrilka commented 5 years ago

It appears to be resolved in #4294

Fuuzetsu commented 5 years ago

I'm unable to confirm (time-wise), feel free to close.

qrilka commented 5 years ago

Running that test on the current master still fails but with a different error:

       stderr:
       Running: /home/qrilka/ws/h/stack/.stack-work/install/x86_64-linux-nix/custom-snapshot-for-building-stack-with-ghc-8.2.2-M5bKQSIGuB0R/8.2.2/bin/stack build
       File path contains a name which is not a valid package name: /run/user/1000/stack-integration-1337-unicode-everywhere4853/stack: <stderr>: commitBuffer: invalid argument (invalid character)
       Main.hs: Exited with exit code: ExitFailure 1
       CallStack (from HasCallStack):
         error, called at /home/qrilka/ws/h/stack/test/integration/lib/StackTest.hs:52:34 in main:StackTest
         stack, called at /home/qrilka/ws/h/stack/test/integration/tests/1337-unicode-everywhere/Main.hs:9:13 in main:Main
       )