Open MdeLv opened 1 year ago
ocaml.4.10.0
$ opam install ocaml-top
(...)
#=== ERROR while compiling ocaml-top.1.1.5 ====================================#
# context 2.1.4 | linux/x86_64 | ocaml-base-compiler.4.10.0 | https://opam.ocaml.org#6e9750a9
# path ~/.opam/4.10.0/.opam-switch/build/ocaml-top.1.1.5
# command ~/.opam/opam-init/hooks/sandbox.sh build jbuilder build -p ocaml-top
# exit-code 1
# env-file ~/.opam/log/ocaml-top-473751-d2718a.env
# output-file ~/.opam/log/ocaml-top-473751-d2718a.out
### output ###
# [...]
# 206 | let s = Pervasives.input_line ic in
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
#
# If you need to stay compatible with OCaml < 4.07, you can use the
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "src/completion.ml", line 231, characters 21-26:
# 231 | setup_completion index buf view
# ^^^^^
# Error: This expression has type qualify:bool -> LibIndex.t
# but an expression was expected of type LibIndex.t
Same error with ocaml.4.09.1 and 4.08.1 .
Finally, it (still) works with 4.07.1:
$ opam install ocaml-top
[NOTE] Package ocaml-top is already installed (current version is 1.1.5).
The programmer should find the cause of that type error.
?
If you don't want people to use your software with recent compilers, what do you think about removing it from the opam repository?...
I don't know why but ocaml-top now launches with Ocaml 4.14.1 .
It looks like version 1.2.0 (Feb 9, 2023) fixed the trouble, isn't it ? Thanks.
It's not possible to install ocaml-top.1.1.5 with ocaml.4.14.0:
While opam file seems fine (ocaml 4.02.0 or newer):
Using suggested --update-invariant forces to downgrade to ocaml.4.10.2 which is not what I want:
How to fix that? Is it an ocaml-top issue or an opam issue (because opam says the contrary of what is in the opam file : "< 4.02.4")? Thanks.