Comments (7)
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.
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.
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.
Ah, thanks, I've tried to use the quotes, but delimited arguments incorrectly :)
from ppx_inline_test.
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.
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.
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)
- Can't make recent ppx_inline_test work on Windows HOT 9
- v0.12.0 is incompatible with let operator syntax HOT 6
- Cannot run tests in bytecode mode HOT 3
- Error using `ppx_inline_test.0.11.0` with `dune>=2.0.0` HOT 3
- how to run tests for this package? HOT 1
- Cannot link on Windows (mingw) because of time_now HOT 9
- Exception-based error reporting is noisy HOT 4
- Name suffix for test modules HOT 2
- Pre/post hook for each test HOT 1
- doesn't work with explicit dependencies HOT 2
- Tests inside of module expression inside of function are ignored HOT 2
- command line arguments HOT 1
- non-ghost location in generated code HOT 3
- running a single test HOT 4
- "Error: ppx_inline_test: extension is disabled because the tests would be ignored (the build system didn't pass -inline-test-lib)" HOT 2
- Configuration to stop at first failure HOT 1
- [%name ...] returns an error (constant expected) HOT 6
- Embed errors in the AST instead of raising HOT 2
- Warning: overriding the purity of the primitive Base_am_testing: pure -> mutator HOT 2
- Is it possible to run an inline test in ocamldebug?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ppx_inline_test.