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: #2441 regression? #2569

Open
mt-caret opened this issue Aug 2, 2024 · 0 comments
Open

Bug: #2441 regression? #2569

mt-caret opened this issue Aug 2, 2024 · 0 comments

Comments

@mt-caret
Copy link

mt-caret commented Aug 2, 2024

I believe I'm running into #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 mt-caret changed the title Bug: https://github.com/ocaml-ppx/ocamlformat/issues/2441 regression? Bug: #2441 regression? Aug 2, 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