ocamlformat icon indicating copy to clipboard operation
ocamlformat copied to clipboard

Bug: #2441 regression?

Open mt-caret opened this issue 6 months ago • 0 comments

I believe I'm running into https://github.com/ocaml-ppx/ocamlformat/issues/2441 on version 0.26.0. Specifically, I can't seem to simultaneously have a dependency on ppxlib and ocamlformat-lib at the same time or I get the following build error.

Is this expected?

$ ls
_build                          dune-project
dune                            ocaml_common_issue_poc.ml
$ cat dune
(executable
 (name ocaml_common_issue_poc)
 (libraries ppxlib ocamlformat-lib))
$ cat ocaml_common_issue_poc.ml 
let _ = Ocamlformat_lib.Translation_unit.parse_and_format

type t = Ppxlib_ast.Parsetree.structure
$ dune clean && dune build ./ocaml_common_issue_poc.exe
File "ocaml_common_issue_poc.ml", line 1:
Error: The files /Users/delta/.opam/5.1.1/lib/ocamlformat-lib/ocamlformat_lib__Translation_unit.cmi
       and /Users/delta/.opam/5.1.1/lib/ppxlib/ast/ppxlib_ast.cmi
       make inconsistent assumptions over interface Ocaml_common

mt-caret avatar Aug 02 '24 23:08 mt-caret