ocamlformat
ocamlformat copied to clipboard
Bug: formatting did not stabilize after 10 iterations with function attribute, a long comment, and janestreet formatting
Describe the bug I encountered this issue while formatting a file in one of my projects. It's length dependent and really subtle - adding or removing a character from the comment will cause ocamlformat to format it successfully.
How to Reproduce Steps to reproduce the behavior:
- Save the snippet in step 2 to a file, e.g. testcase.ml
- Invoke ocamlformat on it
ocamlformat testcase.ml
using janestreet formatting.let[@warning "-27"] (* Lorem ipsum dolor sit amet, consectetur adipiscing elit, eius *) run root = root
- What are the selected options?
profile = janestreet
version = 0.26.2
Thanks for considering this bug report. Please let me know if there's anything else I can provide.