Skip to content

Fatal error with bsb -make-world in 7.2.1 #4218

Closed
@jwhitley

Description

@jwhitley

Repro steps

  1. git clone https://github.com/jwhitley/bsb-module-demo.git
  2. cd bsb-module-demo
  3. git checkout jwhitley/bsb-fatal-js-name-of-module-id
  4. npm i
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions