Closed
Description
Repro steps
git clone https://github.com/jwhitley/bsb-module-demo.git
cd bsb-module-demo
git checkout jwhitley/bsb-fatal-js-name-of-module-id
npm i
bsb -make-world
Expected result
Program builds
Actual result
Crash during build in step 5:
>>>> Start compiling
[3/3] Building src/demo.cmj
FAILED: src/demo.cmj src/demo.cmi /Users/whitley/src/3p/bsb-module-demo/lib/es6_global/src/demo.js
/Users/whitley/src/3p/bsb-module-demo/node_modules/bs-platform/darwin/bsc.exe -bs-package-name bsb-module-demo -bs-package-output es6-global:lib/es6_global/src -color always -I src -warn-error +101 -o src/demo.cmj src/demo.reast
Fatal error: exception File "js_name_of_module_id.ml", line 35, characters 16-22: Assertion failed
FAILED: subcommand failed.
>>>> Finish compiling(exit: 1)
Bug notes
The only source file is src/demo.re
, boiled down to one failing line which amounts to the use of Sys.argv[1]
. As that file notes, removing the syntactic sugar to Array.get(Sys.argv, 1)
doesn't change the error at all.
System notes
OS: macOS 10.15.3
Using OCaml:4.06.1+BS
Metadata
Metadata
Assignees
Labels
No labels