reason-native-web / morph

A webframework for Reason and OCaml
https://reason-native-web.github.io/morph/
MIT License
139 stars 7 forks source link

Pesy init (with template) fails on MacOSX #4

Closed sync closed 5 years ago

sync commented 5 years ago

I wanted to try setting up a new project with pesy and this new framework and followed the instructions:

pesy --template=https://github.com/reason-native-web/morph-hello-world-pesy-template

I got the following errors:

➜  Reason pesy --template=https://github.com/reason-native-web/morph-hello-world-pesy-template
'esy build' failed. Could not build project.
Logs can be found in pesy.stdout.log and pesy.stderr.log
➜  Reason cat  pesy.stdout.log
dune: unknown option `-r'.
Usage: dune build [OPTION]... [TARGET]...
Try `dune build --help' or `dune --help' for more information.
➜  Reason cat pesy.stderr.log
info esy build 0.6.0-df516a (using package.json)
error: command failed: 'dune' 'build' '-p' '-reason' (exited with 1)
esy-build-package: exiting with errors above...
error: build failed with exit code: 1
sync commented 5 years ago

I am using pesy@0.5.0-alpha.4, perhaps we need to release a new esy version ? I also tried to compile pesy from master but i get --template not found, is there a toggle i should be using ?

ulrikstrid commented 5 years ago

The template was not created, I added it too soon in the documentation. I have a open PR for it here: https://github.com/reason-native-web/morph-hello-world-pesy-template/pull/1 Comment there if it doesn't work and if you want more features open issues.

Thank you