Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(ppx): report structured PPX alerts #991

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

anmonteiro
Copy link
Member

@anmonteiro anmonteiro commented Dec 18, 2023

fixes #876

  • PPX alerts are printed with Ocaml_common.Location.prerr_alert:
    let module Location = Ocaml_common.Location in
  • before this change, they were using the default reporter and printed to stdout (in the playground, that's the browser console)
  • after this change, we register the playground's custom alert printer on Ocaml_common.Location in addition to the Melange_compiler_libs registration

@anmonteiro anmonteiro merged commit cff08e9 into main Dec 18, 2023
4 checks passed
@anmonteiro anmonteiro deleted the anmonteiro/playground-fix-ppx-alerts branch December 18, 2023 17:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

playground: alerts from the ppx are not shown
1 participant