reasonml-community / Mareo

HTML 5 canvas implementation of Mario in Reason + Bucklescript
https://reasonml-community.github.io/Mareo/
MIT License
383 stars 44 forks source link

There's been an error running Reason's refmt parser on a file. #3

Open alex-rvz opened 5 years ago

alex-rvz commented 5 years ago

Hello, I'm new to programming and I'm trying to learn ReasonML with this game. Unfortunately, after downloading on my computer and running npm start, I have this error:

We've found a bug for you! C:\ReasonML Projects\Mareo\src\Object.re

There's been an error running Reason's refmt parser on a file. This was the command:

C:\ReasonML Projects\Mareo\node_modules\bs-platform\lib\refmt.exe --print binary "C:\ReasonML Projects\Mareo\src\Object.re" > C:\Users\User\AppData\Local\Temp\ocamlpp25208a

Please file an issue on github.com/facebook/reason. Thanks!

[5/36] ←[34mBuilding←[39m ←[2msrc\Actors.mliast←[22m FAILED: src/Actors.mliast C:\ReasonML Projects\Mareo\node_modules\bs-platform\lib\bsc.exe -pp "C:\ReasonML Projects\Mareo\node_modules\bs-platform\lib\refmt.exe --print binary" -w -30-40+6+7+27+32..39+44+45+101 -nostdlib -I "C:\ReasonML Projects\Mareo\node_modules\bs-platform\lib\ocaml" -bs-no-version-header -bs-super-errors -no-alias-deps -color always -c -o src\Actors.mliast -bs-syntax-only -bs-binary-ast -intf "C:\ReasonML Projects\Mareo\src\Actors.rei" 'C:\ReasonML' is not recognized as an internal or external command, operable program or batch file.

Am I doing something wrong? Thanks

smolck commented 5 years ago

@alex-rvz Hello! I don’t know much about using Reason on Windows, but it appears to me that your problem is due to there being a space in the directory name. Try running the project in a directory with a name without spaces, i.e. put the project in “C:\ReasonML” instead of what it currently is (“C:\Reason ML”).

Hope that helps! If not, please let me know.