package ocaml-lsp-server

  1. Overview
  2. Docs
On This Page
  1. Error log

ocaml-lsp-server 1.5.0

Error log

The package failed to build. The error log from opam follows.

Opam plugin "depext" may require upgrading/reinstalling. Reinstall the plugin on the current switch? [Y/n] y
The following actions will be performed:
  - recompile opam-depext 1.2.3

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.3  (cached)
-> removed   opam-depext.1.2.3
-> installed opam-depext.1.2.3
Done.

<><> opam-depext.1.2.3 installed successfully <><><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment

<><> Carrying on to "opam depext -viy ocaml-lsp-server.1.5.0 yojson.2.2.2 stdlib-shims.0.3.0 seq.base result.1.5 ppx_yojson_conv_lib.v0.15.0 ocamlfind.1.9.6 dune-build-info.3.16.0 dune.3.16.0 dot-merlin-reader.4.5 csexp.1.5.2" 

Since version 2.1, opam now handles external dependencies alongside OCaml ones, and the `depext` plugin interface is provided for backwards compatibility only. Consider using your usual `opam install` command to install both OCaml and system dependencies, or `opam install <pkg> --depext-only` if you want to only install external dependencies.
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
[NOTE] Package dune is already installed (current version is 3.16.0).
[NOTE] Package ocamlfind is already installed (current version is 1.9.6).
The following actions will be performed:
  - install result              1.5
  - install seq                 base
  - install csexp               1.5.2
  - install dune-build-info     3.16.0
  - install stdlib-shims        0.3.0
  - install yojson              2.2.2
  - install ppx_yojson_conv_lib v0.15.0
  - install dot-merlin-reader   4.5
  - install ocaml-lsp-server    1.5.0
===== 9 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/27:
Processing  2/27:
Processing  3/27:
-> retrieved csexp.1.5.2  (cached)
Processing  4/27:
Processing  5/27: [csexp: dune build]
-> retrieved dot-merlin-reader.4.5  (cached)
Processing  6/27: [csexp: dune build]
-> retrieved dune-build-info.3.16.0  (cached)
Processing  7/27: [csexp: dune build]
Processing  8/27: [csexp: dune build] [dune-build-info: rm]
-> retrieved ocaml-lsp-server.1.5.0  (cached)
-> retrieved seq.base  (cached)
Processing  9/27: [csexp: dune build] [dune-build-info: rm]
Processing 10/27: [csexp: dune build] [dune-build-info: rm]
Processing 11/27: [csexp: dune build] [dune-build-info: rm]
-> installed seq.base
Processing 12/27: [csexp: dune build] [dune-build-info: rm]
-> compiled  csexp.1.5.2
Processing 12/27: [dune-build-info: rm]
-> installed csexp.1.5.2
Processing 13/27: [dune-build-info: rm]
-> retrieved ppx_yojson_conv_lib.v0.15.0  (cached)
Processing 14/27: [dune-build-info: rm]
-> retrieved result.1.5  (cached)
Processing 15/27: [dune-build-info: rm] [result: dune build]
-> retrieved stdlib-shims.0.3.0  (cached)
Processing 16/27: [dune-build-info: rm] [result: dune build] [stdlib-shims: dune build]
Processing 16/27: [dune-build-info: dune build] [result: dune build] [stdlib-shims: dune build]
-> retrieved yojson.2.2.2  (cached)
Processing 17/27: [dune-build-info: dune build] [result: dune build] [stdlib-shims: dune build] [yojson: dune build]
-> compiled  stdlib-shims.0.3.0
Processing 17/27: [dune-build-info: dune build] [result: dune build] [yojson: dune build]
-> installed stdlib-shims.0.3.0
Processing 18/27: [dune-build-info: dune build] [result: dune build] [yojson: dune build]
-> compiled  result.1.5
Processing 18/27: [dune-build-info: dune build] [yojson: dune build]
-> installed result.1.5
Processing 19/27: [dune-build-info: dune build] [yojson: dune build]
-> compiled  dune-build-info.3.16.0
Processing 19/27: [yojson: dune build]
-> installed dune-build-info.3.16.0
Processing 20/27: [yojson: dune build]
+ /home/opam/.opam/4.12/bin/dune "build" "-p" "yojson" "-j" "39" "@install" (CWD=/home/opam/.opam/4.12/.opam-switch/build/yojson.2.2.2)
-> compiled  yojson.2.2.2
-> installed yojson.2.2.2
Processing 22/27: [dot-merlin-reader: dune build]
Processing 23/27: [dot-merlin-reader: dune build] [ppx_yojson_conv_lib: dune build]
-> compiled  ppx_yojson_conv_lib.v0.15.0
Processing 23/27: [dot-merlin-reader: dune build]
-> installed ppx_yojson_conv_lib.v0.15.0
Processing 24/27: [dot-merlin-reader: dune build]
+ /home/opam/.opam/4.12/bin/dune "build" "-p" "dot-merlin-reader" "-j" "39" (CWD=/home/opam/.opam/4.12/.opam-switch/build/dot-merlin-reader.4.5)
-> compiled  dot-merlin-reader.4.5
-> installed dot-merlin-reader.4.5
Processing 26/27: [ocaml-lsp-server: dune build]
+ /home/opam/.opam/4.12/bin/dune "build" "-j" "39" "ocaml-lsp-server.install" "--release" (CWD=/home/opam/.opam/4.12/.opam-switch/build/ocaml-lsp-server.1.5.0)
- File "vendor/stdune/dune", line 4, characters 14-25:
- 4 |  (action (run %{bin:cppo} -V OCAML:%{ocaml_version} %{ml} -o %{targets})))
-                   ^^^^^^^^^^^
- Error: Program cppo not found in the tree or in PATH
-  (context: default)
[ERROR] The compilation of ocaml-lsp-server.1.5.0 failed at "dune build -j 39 ocaml-lsp-server.install --release".

#=== ERROR while compiling ocaml-lsp-server.1.5.0 =============================#
# context              2.1.6 | linux/x86_64 | ocaml-base-compiler.4.12.1 | file:///src
# path                 ~/.opam/4.12/.opam-switch/build/ocaml-lsp-server.1.5.0
# command              ~/.opam/4.12/bin/dune build -j 39 ocaml-lsp-server.install --release
# exit-code            1
# env-file             ~/.opam/log/ocaml-lsp-server-115-6541bc.env
# output-file          ~/.opam/log/ocaml-lsp-server-115-6541bc.out
### output ###
# File "vendor/stdune/dune", line 4, characters 14-25:
# 4 |  (action (run %{bin:cppo} -V OCAML:%{ocaml_version} %{ml} -o %{targets})))
#                   ^^^^^^^^^^^
# Error: Program cppo not found in the tree or in PATH
#  (context: default)



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build ocaml-lsp-server 1.5.0
+- 
+- The following changes have been performed
| - install csexp               1.5.2
| - install dot-merlin-reader   4.5
| - install dune-build-info     3.16.0
| - install ppx_yojson_conv_lib v0.15.0
| - install result              1.5
| - install seq                 base
| - install stdlib-shims        0.3.0
| - install yojson              2.2.2
+- 
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.12/.opam-switch/backup/state-20240912203244.export"
'opam --cli=2.1 install ocaml-lsp-server.1.5.0 yojson.2.2.2 stdlib-shims.0.3.0 seq.base result.1.5 ppx_yojson_conv_lib.v0.15.0 ocamlfind.1.9.6 dune-build-info.3.16.0 dune.3.16.0 dot-merlin-reader.4.5 csexp.1.5.2 --verbose --yes --confirm-level=unsafe-yes' failed.
OCaml

Innovation. Community. Security.