-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[new release] ppxlib (0.32.0) #25179
Conversation
CHANGES: - Add an optional `embed_errors` argument to `Context_free.map_top_down` that controls how to deal with exceptions thrown by context-free rules. (ocaml-ppx/ppxlib#468, @NathanReb) - Fix `Longident.parse` so it properly handles unparenthesized dotted operators such as `+.` or `*.`. (ocaml-ppx/ppxlib#111, @rgrinberg, @NathanReb) - raising an exception does no longer cancel the whole context free phase(ocaml-ppx/ppxlib#453, @Burnleydev1) - Sort embedded errors that are appended to the AST by location so the compiler reports the one closer to the beginning of the file first. (ocaml-ppx/ppxlib#463, @NathanReb) - Update `Attribute.get` to ignore `loc_ghost`. (ocaml-ppx/ppxlib#460, @ceastlund) - Add API to manipulate attributes that are used as flags (ocaml-ppx/ppxlib#408, @dianaoigo) - Update changelog to use ISO 8061 date format: YYYY-MM-DD. (ocaml-ppx/ppxlib#445, @ceastlund) - Replace `Caml` with `Stdlib`. (ocaml-ppx/ppxlib#427, @ceastlund) - When a transformation raises, the last valid AST is used as input to the upcoming transformations. All such errors are collected and appended as extension nodes to the final AST (ocaml-ppx/ppxlib#447, @Burnleydev1) - Fix a small mistake in the man pages: Embededding errors is done by default with `-as-pp`, not with `-dump-ast` (ocaml-ppx/ppxlib#464, @pitag-ha) - Set appropriate binary mode when writing to `stdout` especially for Windows compatibility. (ocaml-ppx/ppxlib#466, @jonahbeckford)
@toots the CI has some false negatives on some
And the error is
Do you want to fix the packages? To mark them as unavailable (a.k.a. broken)? I don't know exactly what's the breakage there so Idk what fixing it would involve… opam-healthcheck suggests that the packages are broken on 4.14 only which is somewhat strange. |
Yeah, this is due to A quick patch that seems to work is to add: #define CAML_NAME_SPACE 1 Before all the OCaml includes. It's not clear to me when the breaking change was introduced but:
So, it seems that marking those as unavailable would hurt. |
None of the revdeps failure seem to be related to ppxlib so I think this is good to go! |
I agree, looks fine |
Standard infrastructure for ppx rewriters
CHANGES:
Add an optional
embed_errors
argument toContext_free.map_top_down
thatcontrols how to deal with exceptions thrown by context-free rules.
(Make
Context_free.map_top_down
'sembed_errors
arg optional ocaml-ppx/ppxlib#468, @NathanReb)Fix
Longident.parse
so it properly handles unparenthesized dotted operatorssuch as
+.
or*.
. (Add tests for parsing longident's with . ocaml-ppx/ppxlib#111, @rgrinberg, @NathanReb)raising an exception does no longer cancel the whole context free phase(Allowing multiple errors to be reported in one pass of the context_free phase ocaml-ppx/ppxlib#453, @Burnleydev1)
Sort embedded errors that are appended to the AST by location so the compiler
reports the one closer to the beginning of the file first. (Sort errors by location before appending them to the AST ocaml-ppx/ppxlib#463, @NathanReb)
Update
Attribute.get
to ignoreloc_ghost
. (Fix hash used byAttribute.get
ocaml-ppx/ppxlib#460, @ceastlund)Add API to manipulate attributes that are used as flags (cumbersome flag attributes ocaml-ppx/ppxlib#408, @dianaoigo)
Update changelog to use ISO 8061 date format: YYYY-MM-DD. (Changed dates in changelog to ISO 8601 format: YYYY-MM-DD. ocaml-ppx/ppxlib#445, @ceastlund)
Replace
Caml
withStdlib
. (Replace Caml with Stdlib ocaml-ppx/ppxlib#427, @ceastlund)When a transformation raises, the last valid AST is used as input to the upcoming
transformations. All such errors are collected and appended as
extension nodes to the final AST (Driver: Multiple errors can be reported. ocaml-ppx/ppxlib#447, @Burnleydev1)
Fix a small mistake in the man pages: Embededding errors is done by default with
-as-pp
, not with-dump-ast
(Fix misleading error in man page ocaml-ppx/ppxlib#464, @pitag-ha)Set appropriate binary mode when writing to
stdout
especially for Windowscompatibility. (Binary mode when writing to stdout on Windows ocaml-ppx/ppxlib#466, @jonahbeckford)