ocaml-ppx / ocamlformat

Auto-formatter for OCaml code
MIT License
609 stars 169 forks source link

Bug: Cannot process "src/lib_epoxy_tx/tx_rollup.ml" #2552

Open NicNomadic opened 1 month ago

NicNomadic commented 1 month ago

Describe the bug Processing file https://gitlab.com/tezos/tezos/-/blob/master/src/lib_epoxy_tx/tx_rollup.ml?ref_type=heads results in the following fatal error:

nic@Nics-MacBook tezos.tezos % ocamlformat src/lib_epoxy_tx/tx_rollup.ml >out
ocamlformat: Cannot process "src/lib_epoxy_tx/tx_rollup.ml".
  Please report this bug at https://github.com/ocaml-ppx/ocamlformat/issues.
  BUG: formatting did not stabilize after 10 iterations.

How to Reproduce Steps to reproduce the behavior: see the command above

The option --print-config prints the configuration on the standard output, please put the result of this command in the report if you are not sure which option causes the issue.

nic@Nics-MacBook tezos.tezos % ocamlformat --print-config comment-check=true debug=false disable=false margin-check=false max-iters=10 ocaml-version=4.14 (file .ocamlformat:2) quiet=false disable-conf-attrs=false version-check=true assignment-operator=end-line break-before-in=fit-or-vertical break-cases=fit break-collection-expressions=fit-or-vertical break-colon=after break-fun-decl=wrap break-fun-sig=wrap break-infix=wrap break-infix-before-func=false break-separators=after (file .ocamlformat:6) break-sequences=true break-string-literals=auto break-struct=force cases-exp-indent=4 cases-matching-exp-indent=normal disambiguate-non-breaking-match=false doc-comments=before (file .ocamlformat:14) doc-comments-padding=2 doc-comments-tag-only=default dock-collection-brackets=true (file .ocamlformat:11) exp-grouping=parens extension-indent=2 field-space=loose (file .ocamlformat:5) function-indent=2 function-indent-nested=never if-then-else=compact indent-after-in=0 indicate-multiline-delimiters=no indicate-nested-or-patterns=unsafe-no infix-precedence=indent leading-nested-match-parens=false let-and=compact let-binding-indent=2 let-binding-spacing=compact (file .ocamlformat:4) let-module=compact line-endings=lf margin=80 (file .ocamlformat:15) match-indent=0 match-indent-nested=never max-indent=68 module-item-spacing=sparse (file .ocamlformat:16) nested-match=wrap ocp-indent-compat=false parens-ite=false parens-tuple=always (file .ocamlformat:17) parens-tuple-patterns=multi-line-only parse-docstrings=false parse-toplevel-phrases=false sequence-blank-line=preserve-one sequence-style=separator (file .ocamlformat:13) single-case=compact space-around-arrays=false (file .ocamlformat:7) space-around-lists=false (file .ocamlformat:8) space-around-records=false (file .ocamlformat:12) space-around-variants=false (file .ocamlformat:10) stritem-extension-indent=0 type-decl=compact type-decl-indent=2 wrap-comments=false wrap-fun-args=false (file .ocamlformat:3) profile=default

lentil32 commented 1 month ago

2555