No package named ocaml-lsp-server found

I’m trying to do the basic tutorial at Installing OCaml · OCaml Documentation. After installing opam (which I did with brew; I’m on MacOS) it says to do:

opam install dune merlin ocaml-lsp-server odoc ocamlformat utop dune-release

But I get the error message

No package named ocaml-lsp-server found.

Does anyone know what to do about that?

Can you give details about exactly what commands you used to install opam, and what version of opam? Did you run opam init to do the initialisation? Did you run opam update to download the latest package metadata?

1 Like

Ah. Thanks! The problem must have been that I had some ancient opam stuff hanging around from when I played with it a long time ago, and needed to do opam update and opam upgrade. I’m good to go now.

Seems like it might be worth adding something to the tutorial saying to do that if there’s a problem with running the given opam install, but maybe there are too few people with this problem for it to be worth it.

2 Likes