TheSpyder / rescript-atdgen-generator

Pre-compiled versions of atdgen binaries to be consumed from ReScript projects
Other
10 stars 4 forks source link

Error when running bsb -make-world + atdgen on Windows #1

Closed jchavarri closed 4 years ago

jchavarri commented 4 years ago

https://github.com/jchavarri/bs-atdgen-generator/runs/659691890

[8/8] Building src\atdgen_codec_runtime.cmj
ninja: fatal: ReadFile: The handle is invalid.
[1/16] Building d:\a\bs-atdgen-generator\bs-atdgen-generator\test\src\atd\Foo_t.ml d:\a\bs-atdgen-generator\bs-atdgen-generator\test\src\atd\Foo_t.mli

FAILED: d:/a/bs-atdgen-generator/bs-atdgen-generator/test/src/atd/Foo_t.ml d:/a/bs-atdgen-generator/bs-atdgen-generator/test/src/atd/Foo_t.mli 

npx atdgen -t d:\a\bs-atdgen-generator\bs-atdgen-generator\test\src\atd\Foo.atd
CreateProcess failed: The system cannot find the file specified.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! bs-atdgen-generator-integration-test@0.1.0 build: `bsb -make-world`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the bs-atdgen-generator-integration-test@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\npm\cache\_logs\2020-05-09T21_53_12_608Z-debug.log
##[error]Process completed with exit code 2.
jchavarri commented 4 years ago

It seems like a ninja / bucklescript issue. When running the command manually, the atdgen binary succeeds on generating the .ml and .mli files.