Do we have an ocamlformat version that works both for 4.14.2 and 5.3? (It seems answer is no)
Without it I have difficulties with testing my code on different compilers. Installing different versions of ocamlformat seems to be not an option, because they format differently from version to version.
Here is the constraint I see for the latest release 0.27: “ocaml” {>= “4.08” & < “5.4”}.
Do you have any error trying to install this version OCaml.4.14 ?
I’d like to point out that OCamlformat doesn’t need to be installed in a switch with your project’s dependencies. It can be installed with any other mean, for example system wide, or with devenv.
Also, with Dune package management it is possible to install ocamlformat without conflicting with the project dependencies. In fact this is one of my favourite features of the tool, since I’ve been burned a few times due to trying to install incompatible dependencies in a single switch.
I managed to do this, but I don’t understand what was going wrong.
I’m kind of sure that I seem that ocamlformat-lib.0.27.0 requires ocaml < 5.3, but now I can’t reproduce this. Maybe I did opam update in the middle?