-
Notifications
You must be signed in to change notification settings - Fork 182
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
Improve: improve errors returned to the user. #243
Conversation
With this PR, one get the following behavior
|
Explicitly discriminate errors between - invalid source (together with the reason why) - and ocamlformat bugs (detail with -g/--debug) Additionnally, - ocamlformat does not stop at the first error and process all input. - add a -quiet flag - remove -warn-error flag - [@@@ocamlformat.disable] is only interpreted at toplevel
partially address #203 |
Explicitly discriminate errors between - invalid source (together with the reason why) - and ocamlformat bugs (detail with -g/--debug) Additionally, - ocamlformat does not stop at the first error and processes all input. - add a -quiet flag - remove -warn-error flag - [@@@ocamlformat.disable] is no longer only interpreted at toplevel
raise Formatting_disabled | ||
| _ -> () | ||
in | ||
{Ast_iterator.default_iterator with structure_item; signature_item} |
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.
It seems that Ast_iterator
is not handled by ocaml-migrate-parsetree, so this change causes compilation failure for ocaml <> 4.07. Perhaps it can be added to OMP: ocaml-ppx/ocaml-migrate-parsetree#47 .
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.
Explicitly discriminate errors between
Additionnally,