Skip to content
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

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

Open
lentil32 opened this issue May 29, 2024 · 0 comments
Open

Comments

@lentil32
Copy link

lentil32 commented May 29, 2024

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 lentil32 changed the title Bug: Cannot process multiple comments followed by let* Bug: Cannot process multiple comments between |> and let* May 29, 2024
@lentil32 lentil32 changed the title Bug: Cannot process multiple comments between |> and let* Bug: Infinite loop occurs when multiple comments are between |> and let* May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant