Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install for OCaml 4.14.0 #18

Open
chubin opened this issue Oct 15, 2022 · 1 comment
Open

Can't install for OCaml 4.14.0 #18

chubin opened this issue Oct 15, 2022 · 1 comment

Comments

@chubin
Copy link

chubin commented Oct 15, 2022

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.

@reynir
Copy link
Owner

reynir commented Oct 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants