Hi everyone,
I reinstalled opam on Windows to try out the MSYS2 mode (instead of the Cygwin one), and well I think it was mostly going well, until I tried to instal ocaml-lsp-server. Being a new fresh installation, the default installed switch is currently 5.4.0, and it worked fine for all packages I wanted to test on Windows, except for the lsp:
β opam install ocaml-lsp-server
The following actions will be performed:
=== remove 4 packages
β base-domains base \[conflicts with ocaml\]
β base-effects base \[conflicts with ocaml\]
β base-nnp base \[uses base-domains\]
β ocaml-compiler 5.4.0
=== downgrade 2 packages
β ocaml 5.4.0 to 4.14.2 \[required by ocaml-lsp-server\]
β ocaml-base-compiler 5.4.0 to 4.14.2 \[required by ocaml\]
=== recompile 9 packages
β» cppo 1.8.0 \[uses ocaml\]
β» csexp 1.5.2 \[uses ocaml\]
β» ctypes 0.24.0 \[uses ocaml\]
β» ctypes-foreign 0.24.0 \[uses ocaml\]
β» dune 3.20.2 \[uses ocaml\]
β» dune-configurator 3.20.2 \[uses ocaml\]
β» integers 0.7.0 \[uses ocaml\]
β» ocaml-config 3 \[uses ocaml-base-compiler\]
β» stdlib-shims 0.3.0 \[uses ocaml\]
=== install 29 packages
β astring 0.8.5 \[required by ocaml-lsp-server\]
β base v0.16.4 \[required by ocaml-lsp-server\]
β base-bytes base
β camlp-streams 5.0.1 \[required by ocaml-lsp-server\]
β chrome-trace 3.20.2 \[required by ocaml-lsp-server\]
β dune-build-info 3.20.2 \[required by ocaml-lsp-server\]
β dune-rpc 3.20.2 \[required by ocaml-lsp-server\]
β dyn 3.20.2 \[required by ocaml-lsp-server\]
β fiber 3.7.0 \[required by ocaml-lsp-server\]
β jsonrpc 1.21.0-4.14 \[required by ocaml-lsp-server\]
β lsp 1.21.0-4.14 \[required by ocaml-lsp-server\]
β merlin-lib 4.19-414 \[required by ocaml-lsp-server\]
β ocaml-lsp-server 1.21.0-4.14
β ocamlbuild 0.16.1 \[required by astring\]
β ocamlc-loc 3.20.2 \[required by ocaml-lsp-server\]
β ocamlfind 1.9.8 \[required by astring\]
β ocamlformat-rpc-lib 0.28.1 \[required by ocaml-lsp-server\]
β ordering 3.20.2 \[required by ocaml-lsp-server\]
β pp 2.0.0 \[required by ocaml-lsp-server\]
β ppx_yojson_conv_lib v0.16.0 \[required by ocaml-lsp-server\]
β re 1.14.0 \[required by ocaml-lsp-server\]
β seq base \[required by yojson\]
β sexplib0 v0.16.0 \[required by base\]
β spawn v0.17.0 \[required by ocaml-lsp-server\]
β stdune 3.20.2 \[required by ocaml-lsp-server\]
β topkg 1.1.1 \[required by astring\]
β uutf 1.0.4 \[required by lsp\]
β xdg 3.20.2 \[required by ocaml-lsp-server\]
β yojson 2.2.2 \[required by ocaml-lsp-server\]
Proceed with β 4 removals, β 2 downgrades, β» 9 recompilations and β 29 installations? \[Y/n\]
Is someone able to make me understand why opam tries to downgrade the switchβs OCaml version back to 4.x? I thought maybe the .opam file of the package was the problem but I donβt know much about those and it seemed fine, I think. Also, this doesnβt happen if opam is configured to use Cygwin.
Anyway, thank you for your help in advance.