Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Windows #32

Closed
moodmosaic opened this issue Apr 9, 2017 · 5 comments
Closed

Support for Windows #32

moodmosaic opened this issue Apr 9, 2017 · 5 comments

Comments

@moodmosaic
Copy link
Member

moodmosaic commented Apr 9, 2017

I've converted a couple of QuickCheck properties to Hedgehog and they seem to be running fine on macOS:

image

However, when I try to run the same tests on Windows I'm getting:

*** Exception: <stdout>: hPutChar: invalid argument (invalid character)

In case it helps to troubleshoot, I used

  • this Template Haskell splice to run the properties in both macOS and Windows
  • GHC 8.0.2 on macOS and GHC 7.10.3 on Windows
@jacobstanley
Copy link
Member

I suspect it's the unicode symbols? The colours and in-place updates should get disabled because they're checking hSupportsANSI

@hdgarrood
Copy link

I think the fix for this is usually along the lines of running hSetEncoding stderr utf8 before attempting to print to the console. At least I remember a similar bug being resolved in the purescript compiler that way.

@jacobstanley
Copy link
Member

I think the fix for this is usually along the lines of running hSetEncoding stderr utf8 before attempting to print to the console.

Nice, I'll give that a shot

@moodmosaic
Copy link
Member Author

I may be able to give this a shot as well, over the next few weeks.

@thumphries
Copy link
Member

I think we can treat this as a dupe of #110 - the discussion there is a little more thorough, so let's keep that one open and close this. Reopen or file a more specific issue if more Windows problems emerge.

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

No branches or pull requests

4 participants