Giter Club home page Giter Club logo

Comments (7)

copy avatar copy commented on September 9, 2024 6

I got this library working using jbuilder, but the same issue arises. However, in this case I can't edit the merlin file since it's generated by jbuilder.

I don't think jbuilder should have hard-coded infos about ppx libraries, can this issue be fixed in this project? (for example by somehow detecting the presence of merlin and skipping this error in that case.)

from ppx_inline_test.

trefis avatar trefis commented on September 9, 2024 1

You can also just have FLG -ppx 'ppx-jane -as-ppx -inline-test-lib bap' in your .merlin (i.e. without an extra file indirection).

As for having passing the right default info in the META and having a merlin predicate it seems to me like a reasonable idea, we'll look into doing it for the next release (but might not depending on how much it complicates the META).

from ppx_inline_test.

copy avatar copy commented on September 9, 2024 1

This is now fixed, see https://jbuilder.readthedocs.io/en/latest/tests.html, with the caveat that it may break if one uses more than one library or executable in a the same directory with different flags (ocaml/dune#230).

Cheers everyone!

from ppx_inline_test.

ivg avatar ivg commented on September 9, 2024

Ah, thanks, I've tried to use the quotes, but delimited arguments incorrectly :)

from ppx_inline_test.

 avatar commented on September 9, 2024

Indeed, I'm closing this ticket then.

The caveat is indeed annoying, I hope that we can solve it one day.

from ppx_inline_test.

abliss avatar abliss commented on September 9, 2024

Maybe I'm misunderstanding, but this seems to be broken again. I get the same error message as the OP. If I manually add -as-ppx -inline-test-lib bap to my .merlin file, then it works, but it gets overwritten the next time I run dune.

Here's my dune file:

(library
  (name sum)
  (inline_tests)
  (preprocess (pps ppx_inline_test)))

from ppx_inline_test.

 avatar commented on September 9, 2024

Indeed, we discussed this issue here. It was due to a bug in ppxlib, which has now been fixed in master.

from ppx_inline_test.

Related Issues (20)

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.