williamboman / mason.nvim

Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters.
Apache License 2.0
7.84k stars 276 forks source link

unable to instal r-languageserver #1367

Closed hopezh closed 1 year ago

hopezh commented 1 year ago

I've searched open issues for similar requests

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

Problem description

I got the following message installing r-langugeserver.

  Failed
    ◍ r-languageserver
      ▼ Displaying full log
        Cloning into '.'...
        From https://github.com/mason-org/r-languageserver
         * tag               v0.3.15    -> FETCH_HEAD
        + ./bin/install v0.3.15
        ./bin/install: line 15: exec: R: not found
        spawn: bash failed with exit code 127 and signal 0. 
Screenshot 2023-06-24 at 7 43 51 PM

Expected behavior

Successfully install R lsp.

Affected packages

r-languageservice

Mason output

Failed
    ◍ r-languageserver
      ▼ Displaying full log
        Cloning into '.'...
        From https://github.com/mason-org/r-languageserver
         * tag               v0.3.15    -> FETCH_HEAD
        + ./bin/install v0.3.15
        ./bin/install: line 15: exec: R: not found
        spawn: bash failed with exit code 127 and signal 0. 

### Installation log

```Text
[INFO  Sat Jun 24 00:25:27 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=stylua) {}
[INFO  Sat Jun 24 00:25:27 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=shfmt) {}
[INFO  Sat Jun 24 00:25:27 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=js-debug-adapter) {}
[INFO  Sat Jun 24 00:25:27 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=typescript-language-server) {}
[INFO  Sat Jun 24 00:25:29 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=json-lsp) {}
[INFO  Sat Jun 24 00:25:29 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=shfmt)
[INFO  Sat Jun 24 00:25:29 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=lua-language-server) {}
[INFO  Sat Jun 24 00:25:29 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=stylua)
[INFO  Sat Jun 24 00:25:29 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=js-debug-adapter)
[INFO  Sat Jun 24 00:25:30 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=typescript-language-server)
[INFO  Sat Jun 24 00:25:31 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=lua-language-server)
[INFO  Sat Jun 24 00:25:35 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=json-lsp)
[INFO  Sat Jun 24 19:30:46 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=pyright) {}
[INFO  Sat Jun 24 19:30:47 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=pyright)
[INFO  Sat Jun 24 19:31:14 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=yaml-language-server) {}
[INFO  Sat Jun 24 19:31:19 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:245: Installation succeeded for Package(name=yaml-language-server)
[INFO  Sat Jun 24 19:38:35 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=r-languageserver) {}
[ERROR Sat Jun 24 19:38:37 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=r-languageserver) error=spawn: bash failed with exit code 127 and signal 0. 
[INFO  Sat Jun 24 19:38:51 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=r-languageserver) {}
[ERROR Sat Jun 24 19:38:53 2023] ...azyVim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=r-languageserver) error=spawn: bash failed with exit code 127 and signal 0.

Neovim version (>= 0.7)

NVIM v0.10.0-dev-532+gc07dceba3-Homebrew Build type: Release LuaJIT 2.1.0-beta3

Operating system/version

Darwin Jis-Mac-mini.local 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:19 PDT 2023; root:xn u-8796.121.3~7/RELEASE_ARM64_T8103 arm64

Healthcheck

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

mason.nvim ~
- OK mason.nvim version v1.4.0
- OK PATH: prepend
- 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-06-24-elegant-jitter` 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.20.3 built on darwin13.4.0.`
- OK curl: `curl 7.87.0 (x86_64-apple-darwin13.4.0) libcurl/7.87.0 (SecureTransport) OpenSSL/3.0.8 zlib/1.2.13 libssh2/1.10.0 nghttp2/1.51.0`
- OK gzip: `Apple gzip 403.100.6`
- OK tar: `bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 `
- OK bash: `GNU bash, version 3.2.57(1)-release (arm64-apple-darwin22)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - spawn: go failed with exit code - and signal -. go 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 luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- OK Ruby: `ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin22]`
- OK node: `v16.2.0`
- WARNING java: not available
  - ADVICE:
    - spawn: java failed with exit code 1 and signal 0. The operation couldn’t be completed. Unable to locate a Java Runtime.
      Please visit http://www.java.com for information on installing Java.

- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- WARNING javac: not available
  - ADVICE:
    - spawn: javac failed with exit code 1 and signal 0. The operation couldn’t be completed. Unable to locate a Java Runtime.
      Please visit http://www.java.com for information on installing Java.

- OK python: `Python 3.11.4`
- OK cargo: `cargo 1.65.0 (4bc8f24d3 2022-10-20)`
- OK RubyGem: `3.0.3.1`
- OK npm: `7.13.0`
- OK pip: `pip 23.0.1 from /opt/homebrew/lib/python3.11/site-packages/pip (python 3.11)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 2. Remaining: 58. Limit: 60. Reset: Sat Jun 24 20:07:17 2023.
  Install and authenticate via gh-cli to increase rate limit.

Screenshots

No response

williamboman commented 1 year ago

Hello! You need R to be installed on your system (and available in your PATH) to install r-languageserver.

hopezh commented 1 year ago

Hello! You need R to be installed on your system (and available in your PATH) to install r-languageserver.

Yes, I successfully installed r-languageserver after installing R and RStudio.

Screenshot 2023-06-29 at 11 31 49 AM
flexarea commented 8 months ago

can't add java-language-server as well. Screenshot 2024-03-03 at 2 05 43 PM