Giter Site home page Giter Site logo

Comments (9)

cristianoc avatar cristianoc commented on July 17, 2024 1

^ that's an old version of the ppx, let me try to update

from bisect-starter-esy.

aantron avatar aantron commented on July 17, 2024

It should be compatible with every OCaml version from 4.02.0 on (4.02.3 because of Dune). At first glance, that log doesn't look related to Bisect. My guess is that this has something to do with recent Dune trying to build a secondary compiler.

from bisect-starter-esy.

aantron avatar aantron commented on July 17, 2024

Going to try it locally with a clean esy installation.

from bisect-starter-esy.

cristianoc avatar cristianoc commented on July 17, 2024

Trying straight dune w/o esy (from opam switch 4.06.1):

cristianoc-mbp1:bisect-starter-esy cristianoc$ BISECT_ENABLE=yes dune build ./tester.exe
         ppx hello.pp.ml (exit 2)
(cd _build/default && .ppx/47e007fefa63695257b4d9874e3138b7/ppx.exe --conditional --cookie 'library-name="hello"' -o hello.pp.ml --impl hello.ml --dump-ast)
Fatal error: exception Arg.Bad(".ppx/47e007fefa63695257b4d9874e3138b7/ppx.exe: unknown option '--conditional'.\nppx.exe [options] [<files>]\n  --as-ppx                  Act as a -ppx rewriter\n  --as-pp                   Shorthand for: --dump-ast --embed-errors\n  --dump-ast                Output a binary AST instead of source code\n  --null                    Output nothing, just report errors\n  -o FILE                   Output to this file instead of the standard output\n  --intf FILE               Treat FILE as a .mli file\n  --impl FILE               Treat FILE as a .ml file\n  --embed-errors            Embed error reported by rewriters into the AST\n  --print-transformations   Print registered transformations in their order of executions\n  --cookie NAME=EXPR        Set the cookie NAME to EXPR\n  -exclude <pattern>        Exclude functions matching pattern\n  -exclude-file <filename>  Exclude functions listed in given file\n  -mode {safe|fast|faster}\n                            Ignored\n  -conditional              Do not instrument unless environment variable BISECT_ENABLE is YES\n  -no-comment-parsing       Do not parse source files for BISECT-* comments\n  -help                     Display this list of options\n  --help                    Display this list of options\n")
cristianoc-mbp1:bisect-starter-esy cristianoc$ 

from bisect-starter-esy.

cristianoc avatar cristianoc commented on July 17, 2024
$ dune --version
2.2.0

from bisect-starter-esy.

aantron avatar aantron commented on July 17, 2024

Trying straight dune w/o esy (from opam switch 4.06.1):

The error in this case is probably due to not upgrading Bisect_ppx to 2.0.0. The help output is from a pretty old version.

from bisect-starter-esy.

cristianoc avatar cristianoc commented on July 17, 2024

OK upgrading worked.
Then moved to the same procedure, of avoiding esy, on the original project, genType, and it worked.

The issue can be closed, unless you want to debug dune-esy interactions.

from bisect-starter-esy.

aantron avatar aantron commented on July 17, 2024

Good, I will close this in favor of esy/esy#1062. My local build also failed with an error. It is a different error, but it probably has the same underlying cause. I commented at the esy issue about it.

from bisect-starter-esy.

aantron avatar aantron commented on July 17, 2024

Another option besides avoiding esy is using an earlier Dune version, since Bisect_ppx is compatible with any version of Dune down to Dune 1.0.0.

from bisect-starter-esy.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.