Skip to content

"rescript build" crashes on Windows #5517

Closed
@cknitt

Description

@cknitt

With the npm package for 10.0.0-alpha.1 (and the package tarball created by CI in current master), the behavior on Windows is as follows with the package installed in a project:

npx rescript build causes a crash:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
/c/hostedtoolcache/windows/node/16.15.1/x64/npx: line 48:   331 Segmentation fault      "$NODE_EXE" "$NPX_CLI_JS" "$@"

This can be observed e.g. here: https://github.com/rescript-lang/rescript-compiler/runs/7209391826?check_suite_focus=true

Compiling a file directly with bsc works fine though, as does npx rescript -h:

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Usage: rescript <options> <subcommand>
`rescript` is equivalent to `rescript build`
Options:
  -v, -version  display version number
  -h, -help     display help
Subcommands:
  init
  build
  clean
  format
  convert
  dump
  help
Run `rescript <subcommand> -h` for subcommand help. Examples:
  rescript build -h
  rescript format -h
The default `rescript` is equivalent to `rescript build` subcommand  

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions