-
Notifications
You must be signed in to change notification settings - Fork 841
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
Building with GHCJS intermittently crashes #1629
Comments
$ stack --version
Version 1.0.1, Git revision b10bee1d0e49aa230e9929c3a9e797581b250ebe x86_64 |
Yikes, that's not very good error reporting.. Error is from https://github.com/haskell/cabal/blob/4f6e9a5b63640f4203560f3c7a89131fc66fdd7e/Cabal/Distribution/Simple/GHCJS.hs#L104 , I guess indicating that it couldn't find ghcjs-pkg, or couldn't get its version. I'm betting this is related to #1496 / ghcjs/ghcjs#451 - pretty sure it's an upstream issue with ghcjs / cabal. I find it highly unlikely that such nondeterminism would come from stack, so closing this issue. I'm leaving open the other issue, since it seems to be the main place people are communicating about this issue. It's also possible that stack is doing something wrong that causes this, but since the same issue crops up when using cabal, I doubt it. Out of curiosity, did you install GHCJS using stack? |
Maybe it'd be good to open an issue with cabal, at least about that error reporting? Having pattern matching in a do that can fail is pretty bad.. |
I just figured out #1496 - it's due to node version. Things work for me with v0.10 . Does that also resolve this? |
I wondered if it was |
I have this issue as well. $ stack --version
Version 1.0.2 x86_64
$ node --version
v5.4.1
$ stack exec ghcjs -- --version
The Glorious Glasgow Haskell Compilation System for JavaScript, version 0.2.0.20151029 (GHC 7.10.2) I'll try to downgrade |
I've upgraded
After successful boot I was able to build my project. |
I'm building a project that uses GHCJS improved base and Reflex-DOM. However, intermittently, the build would fail with:
When I installed
http-types
by itself, it worked:stack install http-types-0.8.6
This looks like it could easily be an upstream bug, but I couldn't find it so I'm filing it here so it is at least visible.
The text was updated successfully, but these errors were encountered: