esy / esy

package.json workflow for native development with Reason/OCaml
http://esy.sh
Other
843 stars 93 forks source link

Stack overflow using `esy install` (version 0.1.31) when links to self. #276

Open jordwalke opened 6 years ago

jordwalke commented 6 years ago
MacBook-Pro-41:be jwalke$ esy install
info esy install 0.1.31
info using ocaml@4.6.4
info checking https://github.com/ocaml/opam-repository for updates...
info checking https://github.com/esy-ocaml/esy-opam-override for updates...
info resolving esy packages: done
info solving esy constraints: done

esyi: internal error, uncaught exception:
      Stack overflow
      Raised at file "src/core/lwt.ml", line 3008, characters 20-29
      Called from file "src/unix/lwt_main.ml", line 42, characters 8-18
      Called from file "esyi/bin/esyi.re", line 262, characters 13-30
      Called from file "src/cmdliner_term.ml", line 27, characters 19-24
      Called from file "src/cmdliner.ml", line 27, characters 27-34
      Called from file "src/cmdliner.ml", line 106, characters 32-39
esy: error, exiting...
     error running command:
     '/Users/jwalke/.npm-packages/lib/node_modules/esy/_build/default/esyi/bin/esyi.exe'
jordwalke commented 6 years ago

Package.json that resides in directory named be. I accidentally linked refmterr to this project's self directory be.

{
  "name": "reason-online-rtop",
  "version": "0.0.1",
  "dependencies": {
    "@esy-ocaml/esy-installer": "^0.0.0",
    "@esy-ocaml/reason": "^3.2.0",
    "refmterr": "link:../be",
    "@opam/js_of_ocaml": "*",
    "@opam/js_of_ocaml-ppx": "*",
    "@opam/js_of_ocaml-toplevel": "*",
    "@opam/js_of_ocaml-compiler": "*"
  },
  "esy": {
    "build": [
      ["refmterr", "jbuilder", "build", "evaluator.js"],
      ["cp", "_build/default/evaluator.js", "output/reason.js"]
    ],
    "install": [
      "esy-installer"
    ],
    "buildsInSource": "_build"
  },
  "peerDependencies": {
    "ocaml": "~4.6.0"
  },
  "devDependencies": {
    "@esy-ocaml/merlin": "3.0.5000",
    "@opam/dune": "*",
    "ocaml": "~4.6.0"
  },

  "scripts": {
    "clean": "esy jbuilder clean && rm output/reason.js"
  }
}