No package named merlin found

new to ocaml.
I am trying to install merlin for source code browsing.

opam install merlin

it fails with
No package named merlin found.

How to install merlin?

Have you tried opam update && opam upgrade and then opam install merlin?


Also, nowadays there’s no need to install Merlin directly, dune and ocaml-lsp-server give you all the functionality: opam install dune ocaml-lsp-server.

Then use it with a language server plugin for your favourite editor, e.g. OCaml Platform - Visual Studio Marketplace

1 Like