ocamlformat icon indicating copy to clipboard operation
ocamlformat copied to clipboard

Bug: Infinite loop occurs when multiple comments are between `|>` and `let*`

Open lentil32 opened this issue 3 months ago • 0 comments

Describe the bug

ocamlformat errors:
ocamlformat: Cannot process "/path/to/file/test.ml".
  Please report this bug at https://github.com/ocaml-ppx/ocamlformat/issues.
  BUG: formatting did not stabilize after 10 iterations.

How to Reproduce Minimal sample code that occurs same error:

a |> (* *)

  (*  *)
let* b = 1 in
a

.ocamlformat:

profile=default

lentil32 avatar May 29 '24 12:05 lentil32