Skip to content

Commit

Permalink
Add a comment about needed a certain version of nodejs and possibly n…
Browse files Browse the repository at this point in the history
…eeding happy installed
  • Loading branch information
steveshogren committed Mar 6, 2016
1 parent 157b340 commit 3fdf641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Setting phasers to stun... (port 8080) (ctrl-c to quit)

That last message is [Scotty](http://hackage.haskell.org/package/scotty) telling you it's running. That means you're good.

To build the editor, do: `cd editor` from the root directory, then do `stack build`. The editor is built using GHCJS. You can symlink the generated Javascript files by performing a `ln -s $(stack path --local-install-root)/bin .` in the `editor` directory.
To build the editor, ensure you have nodejs installed to version lower than `0.11`. After that, do: `cd editor` from the root directory, then do `stack build`. If you get a warning about missing happy, try `stack build happy`. The editor is built using GHCJS. You can symlink the generated Javascript files by performing a `ln -s $(stack path --local-install-root)/bin .` in the `editor` directory.

These instructions do not work on Windows as far as I know (this might be fixable, contact me if interested), but if you're on Windows or just prefer to build the code on a known-good VM, use the [Vagrant box setup](#vagrant) after reading through these instructions. If you go this route, you can still use your preferred text editor. The VM will have shared filesystem access to the directory where you've checked out the code.

Expand Down

2 comments on commit 3fdf641

@aryairani
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stack build happy doesn't seem to help; no obviously relevant output, and I still get this error when running stack build in editor/:

    Configuring haskell-src-exts-1.16.0.1...
    setup-Simple-Cabal-1.22.4.0-ghcjs-0.2.0.20151001_ghc-7.10.2: The program
    'happy' version >=1.17 is required but it could not be found.

Not sure if related to commercialhaskell/stack#1427

@steveshogren
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I thought that was the fix, but I'd also earlier added my cabal directory to my path and at one point actually ran cabal install happy. It didn't appear to work until the stack install though.

Did you try the suggested fix on commercialhaskell/stack#1427 ?

Please sign in to comment.