-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conflicts with other ppx_deriving plugins #22
Comments
I can reproduce this like this: dune:
foo.ml:
$ dune build foo/foo.a
ppx foo/foo.pp.ml (exit 1)
(cd _build/default && .ppx/ppx_deriving.show+ppx_deriving_protobuf/ppx.exe --cookie 'library-name="foo"' -o foo/foo.pp.ml --impl foo/foo.ml --dump-ast)
File "foo/foo.ml", line 1, characters 25-33:
Error: Cannot locate deriver protobuf If I remove This is with |
@whitequark now that we've transitioned ppx_deriving_protobuf and ppx_deriving_yojson to dune, how about we proceed with moving them into ppx_deriving? We've had this discussion on github before (I cant find the link), and we agreed on doing this will keeping the opam structure the same. So things would still be published as 3 opam packages, but things will be easier to maintain as the 3 projects will be maintained together. We'd be able to add tests for bugs such as this. |
Sure, go ahead. What do we do with the repos? I would prefer to update them to say that the main repo should now be used instead. |
It is better to skip this step completely and do this only after ppx_deriving is ported to ppxlib (or future ppx). |
It would be worse. It is much easier to port everything to ppxlib all at once. |
When adding a
[@@deriving protobuf]
stanza to a type it works, but when any other deriver is added to the build (using dune at least), e.g.ppx_deriving.show
orppx_deriving_yojson
compilation breaks withAll the other derivers work fine with each other.
The text was updated successfully, but these errors were encountered: