aantron / bisect_ppx

Code coverage for OCaml and ReScript
http://aantron.github.io/bisect_ppx/demo/
MIT License
301 stars 60 forks source link

Fails to build on rescript 10: "Unbound type constructor out_channel" #427

Open adnelson opened 1 year ago

adnelson commented 1 year ago

bisect_ppx fails to build with rescript 10. I have an example repo here: https://github.com/adnelson/rescript-10-bisect

{
  "name": "rescript-10-bisect",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "bisect_ppx": "^2.8.2",
    "rescript": "^10.1.4"
  }
}

MacOS Monterey 12.6

Error:

% yarn rescript build
yarn run v1.22.19
$ ./node_modules/.bin/rescript build
Dependency on bisect_ppx
rescript: [11/14] src/common/bisect_common-Bisect.cmi
FAILED: src/common/bisect_common-Bisect.cmi
File "./node_modules/bisect_ppx/src/common/bisect_common.mli", line 68, characters 42-53:
Error: Unbound type constructor out_channel
FAILED: cannot make progress due to previous errors.
Failure: ./node_modules/rescript/darwin/ninja.exe
Location: ./node_modules/bisect_ppx/lib/bs
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.