You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I published a BuckleScript generator for atdgen with the intention to make it Windows compatible, so that Windows users in BuckleScript community can also have access to it.
But it seems that when running it, bsb (or ninja) has some issue with paths:
C:\Users\IEUser\Downloads\bs-atdgen-generator-master\test>yarn build
yarn run v1.19.2
$ bsb -make-world
bsb: no work to do.
bsb: no work to do.
[1/16] �[34mBuilding�[39m �[2mC:\Users\IEUser\Downloads\bs...ds\bs-atdgen-generator-master\test\src\atd\Foo_bs.mli�[22m
FAILED: C:/Users/IEUser/Downloads/bs-atdgen-generator-master/test/src/atd/Foo_bs.ml C:/Users/IEUser/Downloads/bs-atdgen-generator-master/test/src/atd/Foo_bs.mli
npx atdgen -bs C:\Users\IEUser\Downloads\bs-atdgen-generator-master\test\src\atd\Foo.atd
CreateProcess failed: The system cannot find the file specified.
[2/16] �[34mBuilding�[39m �[2mC:\Users\IEUser\Downloads\bs...ads\bs-atdgen-generator-master\test\src\atd\Foo_t.mli�[22m
FAILED: C:/Users/IEUser/Downloads/bs-atdgen-generator-master/test/src/atd/Foo_t.ml C:/Users/IEUser/Downloads/bs-atdgen-generator-master/test/src/atd/Foo_t.mli
npx atdgen -t C:\Users\IEUser\Downloads\bs-atdgen-generator-master\test\src\atd\Foo.atd
CreateProcess failed: The system cannot find the file specified.
FAILED: subcommand failed.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When running the command manually npx atdgen -bs C:\Users\IEUser\Downloads\bs-atdgen-generator-master\test\src\atd\Foo.atd, it works.
From the error above, after the FAILED: string it can be seen how the path has unix slashes /, one hypothesis that fits the error is that the path expected in the resulting file is not adapted for Windows file system?
Example failing run from GH actions with the whole flow.
Version
7.3.2
Repro
git clone https://github.com/jchavarri/bs-atdgen-generator/
cd bs-atdgen-generator/test
npm install
npm build
It seems this was an issue with the way ninja uses CreateProcess, which does some shenanigans with .exe extension. Using absolute paths to generator binary fixes it, see TheSpyder/rescript-atdgen-generator#3.
I published a BuckleScript generator for atdgen with the intention to make it Windows compatible, so that Windows users in BuckleScript community can also have access to it.
But it seems that when running it, bsb (or ninja) has some issue with paths:
When running the command manually
npx atdgen -bs C:\Users\IEUser\Downloads\bs-atdgen-generator-master\test\src\atd\Foo.atd
, it works.From the error above, after the
FAILED:
string it can be seen how the path has unix slashes/
, one hypothesis that fits the error is that the path expected in the resulting file is not adapted for Windows file system?Example failing run from GH actions with the whole flow.
Version
7.3.2
Repro
build.ninja
The text was updated successfully, but these errors were encountered: