-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add error_extensionf
in the API to ease the process of embedding errors
#316
Conversation
error_extensionf
in the API to ease the process of embedding errorserror_extensionf
in the API to ease the process of embedding errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, LGTM. Thanks, @panglesd! Could you add a changelog entry?
Oh, and one more thing: we should also edit the documentation of |
Sure! I added a changelog entry and updated the doc. When this PR and the #318 PR are merged, there should be a link from the API of those functions to the relevant part of the manual. The maintenance of this link would be eased if the manual was written using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks! Let's move the changelog entry to the unreleased
section and merge this.
CHANGES.md
Outdated
@@ -19,6 +19,8 @@ | |||
consider a type declaration recursive if the type appeared inside an attribute | |||
payload (#299, @NathanReb) | |||
|
|||
- Added `error_extensionf` function to the `Locate` module (#316, @panglesd) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Added `error_extensionf` function to the `Locate` module (#316, @panglesd) | |
- Added `error_extensionf` function to the `Location` module (#316, @panglesd) |
Also, similarly to here: would you mind rebasing over main and moving this entry up to the unreleaed
section (it's currently in the section of the last release).
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
Signed-off-by: Paul-Elliot <[email protected]>
a6f68d5
to
1f6e53c
Compare
Signed-off-by: Paul-Elliot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thank you!
CHANGES: - Added `error_extensionf` function to the `Location` module (ocaml-ppx/ppxlib#316, @panglesd) - Ast patterns: add `drop` and `as` patterns (ocaml-ppx/ppxlib#313 by @Kakadu, review by @pitag-ha) - Fixed a bug resulting in disscarded rewriters in the presence of instrumentations, as well as a wrong order of rewriting (ocaml-ppx/ppxlib#296, @panglesd) - Driver: Append the last valid AST to the error in case of located exception when embedding errors (ocaml-ppx/ppxlib#315, @panglesd)
This is part of the #314 tasks.
The examples are updated to embed errors using the new function, instead of raising located errors.