-
Notifications
You must be signed in to change notification settings - Fork 41
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
Prepare for 5.2 AST bump #331
base: main
Are you sure you want to change the base?
Conversation
Thanks! So IIUC, the previous versions need a |
That's correct :)) Once we 0.36.0 is released, having a release with |
I just merged #335 (incl. suitable The CI is still failing unfortunately:
AFAICS this is because the latest |
Hot off the press! ppx_deriving 6.1.0 has just been released which you can use :) |
Thanks for all your work on this Patrick! 🙏 |
Signed-off-by: Patrick Ferris <[email protected]>
OK, I rebased and added a I see the ocaml 5.2 and 5.3 workflows passing now, but all 4.08 to 5.0 workflows are failing the same test,
It seems to be due to the type annotation following the function header in the The thing is, the choice of printing it first in the header seems to be caused by qcheck/test/ppx_deriving_qcheck/deriver/qcheck/test_textual.ml Lines 16 to 18 in a15d5de
as the expected string has the type annotation last: qcheck/test/ppx_deriving_qcheck/deriver/qcheck/test_textual.ml Lines 776 to 799 in a15d5de
Since the test works on 5.2 and 5.3 with the 5.2-AST and worked with |
Thanks for the report @jmid -- taking a look :) |
Yeah, I think this is a known thing in the roundtripping of this code. See this comment in the migration from 501 to 502 in ppxlib I think that's what we're seeing here, the pexp_constraint is now fully around the body of the function and not in the function argument section. CC-ing @NathanReb though in case I've missed something here. |
In preparation for ocaml/opam-repository#27478 there is WIP documentation about the AST bump on the ppxlib wiki: https://github.com/ocaml-ppx/ppxlib/wiki/Upgrading-to-ppxlib-0.36.0