reynir/ocp-index-top

Can't install for OCaml 4.14.0

Opened this issue · 1 comments

I am trying to install ocp-index-top for my environment, based on Ocaml 4.14.0:

$ opam install ocp-index-top
Sorry, no solution found: there seems to be a problem with your request.

No solution found, exiting
$ ocaml --version
The OCaml toplevel, version 4.14.0

It seems to be similar to the problem mentioned here: https://stackoverflow.com/questions/53116160/
but it was 4 years ago, and am I not sure that it is exactly the same problem.

Hello @chubin,
Thank you for your report. First of all, I would like to say that I am not actively maintaining this project anymore. Since utop 2.0.1 ocp-index-top doesn't work very well with utop anymore (see #9). I can recommend using down with ocp-index if that is an option for you. It provides documentation lookup as well if ocp-index is installed.

With that said, the error you are seeing is due to the opam file in the opam repository putting an upper bound on OCaml version 4.10.0, see ocaml/opam-repository@e6fc985. Ocp-index-top depends on AST internals of OCaml which changes from time to time. If you are keen on fixing this you may look at a5ce48a how a similar breaking change in OCaml 4.4.0 was handled. I don't know what exactly broke in OCaml 4.10.0, and there may be more breakage in later versions, too. I will be happy to review, merge and release patches.