mjambon / tophide

Hide values starting with _ in the ocaml toplevel
http://martin.jambon.free.fr/ocaml.html#tophide
Other
4 stars 3 forks source link

OCaml 5.3 support #4

Open kit-ty-kate opened 1 week ago

kit-ty-kate commented 1 week ago

This project currently fails to build with OCaml 5.3:

#=== ERROR while compiling tophide.1.0.4 ======================================#
# context              2.4.0~alpha1~dev | linux/x86_64 | ocaml-variants.5.3.0+trunk | file:///home/opam/opam-repository
# path                 ~/.opam/5.3/.opam-switch/build/tophide.1.0.4
# command              /usr/bin/make
# exit-code            2
# env-file             ~/.opam/log/tophide-19-5a4c6d.env
# output-file          ~/.opam/log/tophide-19-5a4c6d.out
### output ###
# cat META.in > META
# echo 'version = "1.0.4"' >> META
# ocamlc -I +compiler-libs -c tophide.ml
# File "tophide.ml", line 29, characters 25-46:
# 29 |   print_out_class_type = !print_out_class_type;
#                               ^^^^^^^^^^^^^^^^^^^^^
# Error: This expression has type
#          "Outcometree.out_class_type Format_doc.printer" =
#            "Format_doc.formatter -> Outcometree.out_class_type -> unit"
#        but an expression was expected of type
#          "Format.formatter -> Outcometree.out_class_type -> unit"
#        Type "Format_doc.formatter" is not compatible with type "Format.formatter"
# make: *** [Makefile:11: tophide.cmo] Error 2
mjambon commented 1 week ago

Thanks for the report, @kit-ty-kate. I see the opam package is a dependency of mikmatch which is a Camlp4 syntax extension. I'll post a note there.