mason.nvim icon indicating copy to clipboard operation
mason.nvim copied to clipboard

Installing ocaml lsp failed

Open glyh opened this issue 2 years ago • 1 comments

I've searched open issues for similar requests

  • [X] Yes

I've manually reviewed logs to find potential errors

  • [X] Yes

I've recently downloaded the latest plugin version of mason.nvim

  • [X] Yes

Problem description

Installing ocaml lsp failed

Expected behavior

succeeds

Steps to reproduce

  1. install mason on neovim
  2. insatll ocaml lsp

Affected packages

ocaml-lsp

Neovim version (>= 0.7)

NVIM v0.9.1 Build type: Release LuaJIT 2.1.0-beta3

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Operating system/version

Linux arch 6.4.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 11 Jul 2023 05:13:39 +0000 x86_64 GNU/Linux

Healthcheck

==============================================================================
mason: require("mason.health").check()

mason.nvim ~
- OK mason.nvim version v1.6.0
- OK PATH: skip
- OK Providers: 
  mason.providers.registry-api
  mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2023-07-18-tense-talon` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- OK wget: `GNU Wget 1.21.4 built on linux-gnu.`
- OK curl: `curl 8.1.2 (x86_64-pc-linux-gnu) libcurl/8.1.2 OpenSSL/3.1.1 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh2/1.11.0 nghttp2/1.55.1`
- OK gzip: `gzip 1.12`
- OK tar: `tar (GNU tar) 1.34`
- OK bash: `GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING Ruby: not available
  - ADVICE:
    - spawn: ruby failed with exit code - and signal -. ruby is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- WARNING RubyGem: not available
  - ADVICE:
    - spawn: gem failed with exit code - and signal -. gem is not executable
- OK Go: `go version go1.20.6 linux/amd64`
- OK node: `v20.4.0`
- OK luarocks: `/usr/bin/luarocks 3.9.2`
- OK cargo: `cargo 1.72.0-nightly (49b6d9e17 2023-06-09)`
- OK python: `Python 3.11.3`
- OK java: `openjdk version "20.0.1" 2023-04-18`
- OK julia: `julia version 1.9.2`
- OK JAVA_HOME: `openjdk version "20.0.1" 2023-04-18`
- OK javac: `javac 20.0.1`
- OK npm: `9.8.0`
- OK pip: `pip 22.3.1 from /home/lyh/.local/lib/python3.11/site-packages/pip (python 3.11)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 5000. Limit: 5000. Reset: Wed 19 Jul 2023 09:28:46 AM CST.

Screenshots or recordings

    Installing opam package [email protected]…
    The following actions will be performed:
      ∗ install stdune           3.6.2      [required by ocaml-lsp-server]
      ∗ install fiber            3.7.0      [required by ocaml-lsp-server]
      ∗ install dune-rpc         3.6.2      [required by ocaml-lsp-server]
      ∗ install ocaml-lsp-server 1.15.1-5.0
    ===== ∗ 4 =====
    
    <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
    Processing  1/12:
    Processing  2/12:
    Processing  3/12:
    ⬇ retrieved fiber.3.7.0  (cached)
    Processing  4/12:
    ⬇ retrieved dune-rpc.3.6.2  (cached)
    ⬇ retrieved stdune.3.6.2  (cached)
    Processing  5/12: [stdune: rm]
    ⬇ retrieved ocaml-lsp-server.1.15.1-5.0  (cached)
    + /home/lyh/.opam/opam-init/hooks/sandbox.sh "build" "rm" "-rf" "vendor/csexp" (CWD=/home/lyh/.opam/default/.opam-switch/build/stdune.3.6.2)
    + /home/lyh/.opam/opam-init/hooks/sandbox.sh "build" "rm" "-rf" "vendor/pp" (CWD=/home/lyh/.opam/default/.opam-switch/build/stdune.3.6.2)
    Processing  5/12: [stdune: dune build]
    + /home/lyh/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "stdune" "-j" "15" "@install" (CWD=/home/lyh/.opam/default/.opam-switch/build/stdune.3.6.2)
    - (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/.stdune.objs/byte -I /home/lyh/.opam/default/lib/csexp -I /home/lyh/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune/.stdune.objs/byte/stdune__Exn.cmi -c -intf otherlibs/stdune/exn.mli)
    - File "otherlibs/stdune/exn.mli", line 1:
    - Error: The files /home/lyh/.opam/default/lib/pp/pp.cmi
    -        and /usr/lib/ocaml/dyn/dyn.cmi make inconsistent assumptions
    -        over interface Pp
    - (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/.stdune.objs/byte -I /home/lyh/.opam/default/lib/csexp -I /home/lyh/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune/.stdune.objs/byte/stdune__Sexp.cmi -c -intf otherlibs/stdune/sexp.mli)
    - File "otherlibs/stdune/sexp.mli", line 1:
    - Error: The files /home/lyh/.opam/default/lib/pp/pp.cmi
    -        and /usr/lib/ocaml/dyn/dyn.cmi make inconsistent assumptions
    -        over interface Pp
    - (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/.stdune.objs/byte -I /home/lyh/.opam/default/lib/csexp -I /home/lyh/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune/.stdune.objs/byte/stdune__Ansi_color.cmi -c -intf otherlibs/stdune/ansi_color.mli)
    - File "otherlibs/stdune/ansi_color.mli", line 1:
    - Error: The files /usr/lib/ocaml/dyn/dyn.cmi
    -        and /home/lyh/.opam/default/lib/pp/pp.cmi
    -        make inconsistent assumptions over interface Pp
    - (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/.stdune.objs/byte -I /home/lyh/.opam/default/lib/csexp -I /home/lyh/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune/.stdune.objs/byte/stdune__Exn_with_backtrace.cmi -c -intf otherlibs/stdune/exn_with_backtrace.mli)
    - File "otherlibs/stdune/exn_with_backtrace.mli", line 1:
    - Error: The files otherlibs/stdune/.stdune.objs/byte/stdune__Result.cmi
    -        and /home/lyh/.opam/default/lib/pp/pp.cmi
    -        make inconsistent assumptions over interface Pp
    - (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/.stdune.objs/byte -I /home/lyh/.opam/default/lib/csexp -I /home/lyh/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune/.stdune.objs/byte/stdune__Path.cmi -c -intf otherlibs/stdune/path.mli)
    - File "otherlibs/stdune/path.mli", line 1:
    - Error: The files otherlibs/stdune/.stdune.objs/byte/stdune__Path_intf.cmi
    -        and /home/lyh/.opam/default/lib/pp/pp.cmi
    -        make inconsistent assumptions over interface Pp
    
    
    <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
    ┌─ The following actions were aborted
    │ ∗ install dune-rpc         3.6.2
    │ ∗ install fiber            3.7.0
    │ ∗ install ocaml-lsp-server 1.15.1-5.0
    └─ 
    ┌─ The following actions failed
    │ λ build stdune 3.6.2
    └─ 
    ╶─ No changes have been performed
    # Run eval (opam env) to update the current shell environment
    [ERROR] The compilation of stdune.3.6.2 failed at "dune build -p stdune -j 15 @install".
    
    #=== ERROR while compiling stdune.3.6.2 =======================================#
    # context              2.1.5 | linux/x86_64 | ocaml.5.0.0 | https://opam.ocaml.org#45615409
    # path                 ~/.opam/default/.opam-switch/build/stdune.3.6.2
    # command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p stdune -j 15 @install
    # exit-code            1
    # env-file             ~/.opam/log/stdune-359265-7bd9a9.env
    # output-file          ~/.opam/log/stdune-359265-7bd9a9.out
    ### output ###
    # Error: The files /usr/lib/ocaml/dyn/dyn.cmi
    # [...]
    #        make inconsistent assumptions over interface Pp
    # (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/.stdune.objs/byte -I /home/lyh/.opam/default/lib/csexp -I /home/lyh/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune/.stdune.o[...]
    # File "otherlibs/stdune/exn_with_backtrace.mli", line 1:
    # Error: The files otherlibs/stdune/.stdune.objs/byte/stdune__Result.cmi
    #        and /home/lyh/.opam/default/lib/pp/pp.cmi
    #        make inconsistent assumptions over interface Pp
    # (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/.stdune.objs/byte -I /home/lyh/.opam/default/lib/csexp -I /home/lyh/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune/.stdune.o[...]
    # File "otherlibs/stdune/path.mli", line 1:
    # Error: The files otherlibs/stdune/.stdune.objs/byte/stdune__Path_intf.cmi
    #        and /home/lyh/.opam/default/lib/pp/pp.cmi
    #        make inconsistent assumptions over interface Pp
    
    'opam install --destdir=. --yes --verbose ocaml-lsp-server.1.15.1-5.0' failed.
    spawn: opam failed with exit code 31 and signal 0. 
    

glyh avatar Jul 19 '23 00:07 glyh

There's a discussion here, thus I open an issue for it.

glyh avatar Jul 19 '23 00:07 glyh