ocamlformat icon indicating copy to clipboard operation
ocamlformat copied to clipboard

Bug: comment changed / doc-comment dropped

Open semarie opened this issue 1 year ago • 0 comments

Describe the bug

while running ocamlformat, it complained, and asked for report a bug.

How to Reproduce

Here a minimized example (test.ml):

(** my comment *)
let myfunction a b =
  a + b
  [@@ocamlformat "disable=true"]
$ ocamlformat --enable-outside-detected-project test.ml
ocamlformat: Cannot process "test.ml".
  Please report this bug at https://github.com/ocaml-ppx/ocamlformat/issues.
  BUG: comment changed.
File "_none_", line 1:
Error: doc-comment (**  my comment  *) dropped.

semarie avatar Oct 10 '24 09:10 semarie