ocaml-ppx / ppx_import

Less redundancy in type declarations and signatures
MIT License
89 stars 29 forks source link

OCaml 5.2 support #93

Closed kit-ty-kate closed 7 months ago

kit-ty-kate commented 8 months ago

The current version of ppx_import is not compatible with OCaml 5.2 (currently released as 5.2.0\~alpha1)

#=== ERROR while compiling ppx_import.1.10.0 ==================================#
# context              2.2.0~beta2~dev | linux/x86_64 | ocaml-variants.5.2.0+trunk | file:///home/opam/opam-repository
# path                 ~/.opam/5.2/.opam-switch/build/ppx_import.1.10.0
# command              ~/.opam/5.2/bin/dune build -p ppx_import -j 1
# exit-code            1
# env-file             ~/.opam/log/ppx_import-20-7b1712.env
# output-file          ~/.opam/log/ppx_import-20-7b1712.out
### output ###
# (cd _build/default && /home/opam/.opam/5.2/bin/ocamlc.opt -w -40 -g -bin-annot -I src/.ppx_import.objs/byte -I /home/opam/.opam/5.2/lib/ocaml-compiler-libs/common -I /home/opam/.opam/5.2/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/5.2/lib/ocaml/compiler-libs -I /home/opam/.opam/5.2/lib/ppx_derivers -I /home/opam/.opam/5.2/lib/ppxlib -I /home/opam/.opam/5.2/lib/ppxlib/ast -I /home/opam/.opam/5.2/lib/ppxlib/astlib -I /home/opam/.opam/5.2/lib/ppxlib/print_diff -I /home/opam/.opam/5.2/lib/ppxlib/stdppx -I /home/opam/.opam/5.2/lib/ppxlib/traverse_builtins -I /home/opam/.opam/5.2/lib/sexplib0 -I /home/opam/.opam/5.2/lib/stdlib-shims -no-alias-deps -open Ppx_import__ -o src/.ppx_import.objs/byte/ppx_import__Compat.cmo -c -impl src/compat.pp.ml)
# File "src/compat.ml", line 45, characters 4-17:
# 45 |   | Type_abstract -> Type_abstract
#          ^^^^^^^^^^^^^
# Error: The constructor "Type_abstract" expects 1 argument(s),
#        but is applied here to 0 argument(s)
kit-ty-kate commented 7 months ago

Update: beta1 got released today