Skip to content

OCaml 5.3 support #2576

@kit-ty-kate

Description

@kit-ty-kate

ocamlformat current fails to build with OCaml 5.3:

#=== ERROR while compiling ocamlformat-lib.0.26.2 =============================#
# context              2.3.0~alpha~dev | linux/x86_64 | ocaml-variants.5.3.0+trunk | file:///home/opam/opam-repository
# path                 ~/.opam/5.3/.opam-switch/build/ocamlformat-lib.0.26.2
# command              ~/.opam/5.3/bin/dune build -p ocamlformat-lib -j 1 @install
# exit-code            1
# env-file             ~/.opam/log/ocamlformat-lib-20-cfb175.env
# output-file          ~/.opam/log/ocamlformat-lib-20-cfb175.out
### output ###
# (cd _build/default && /home/opam/.opam/5.3/bin/ocamlc.opt -w -40 -noassert -w -9 -open Parser_shims -g -bin-annot -bin-annot-occurrences -I vendor/ocaml-common/.ocaml_common.objs/byte -I /home/opam/.opam/5.3/lib/ocaml/compiler-libs -I vendor/parser-shims/.parser_shims.objs/byte -intf-suffix .ml -no-alias-deps -open Ocaml_common -o vendor/ocaml-common/.ocaml_common.objs/byte/ocaml_common__Location.cmo -c -impl vendor/ocaml-common/location.ml)
# File "vendor/ocaml-common/location.ml", line 505, characters 8-27:
# 505 |         Misc.pp_two_columns ~sep:"|" ~max_lines ppf
#               ^^^^^^^^^^^^^^^^^^^
# Error: Unbound value "Misc.pp_two_columns"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions