-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken with ppx using ppx_driver
"Error: Attribute `with' was not used"
#17
Comments
OK, ppx_deriving and ppx_sexp_conv coexistence is currently completely unusable. This is bad. |
Edit: Adding |
Ups, I was wrong, I was not able to fix the problem with |
I traced this back to |
That has been working fine for some time; thanks to all who have helped! |
Well, the
the situation continues to be a bit frustrating I'm afraid :( |
If I understand things correctly, we (people willing to fix bugs in ppx_import) have no control/agency over what the drivers that you use decide to do, and to fix the problem you observe. So it's good to open the PR here to track progress, but you should really creating an issue with the people who released "the v0.10.0 versions of the JS stuff", because the fix may be on their side. |
Thanks for you help @gasche , I am afraid that even after reading ocaml-ppx/ppx_deriving#153 , I don't understand what is going on, and how to even start looking at the problem. All that I have is a simple
and a declaration such as: type regular_inductive_arity =
[%import: Declarations.regular_inductive_arity
[@with Term.sorts := Sorts.t;]]
[@@deriving sexp] that was working fine, now I just did How am I supposed to provide a working package? I am just naive trying to combine two ppx? What is the proper package to report the bug? In my system I see:
I am having trouble to track which package is the one to blame here. |
It seems that a change in ppx_driver.v0.9 wasn't properly integrated in the development version. Hopefully this should be fixed by ocaml/opam-repository#11078 |
@diml thanks! I was about to ping you. |
Thanks @diml ! |
v0.10.1 seems to solve the problem, uff, what a relief! XD. Thanks to both again! |
When using
ppx_import
with some other ppx rewriters such asppx_sexp_conv
we get:Thanks!
The text was updated successfully, but these errors were encountered: