Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

r_language_server fails to install #581

Closed
1 task done
jakewvincent opened this issue Apr 8, 2022 · 0 comments
Closed
1 task done

r_language_server fails to install #581

jakewvincent opened this issue Apr 8, 2022 · 0 comments

Comments

@jakewvincent
Copy link

Problem description

r_language_server fails to successfully install after :LspInstall command is issued. Other language servers install successfully.

Neovim version (>= 0.6)

NVIM v0.6.1
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Operating system/version

Linux xps13 5.17.1-300.fc36.x86_64 #1 SMP PREEMPT Mon Mar 28 15:27:56 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig

  • Yes

Affected language servers

r_language_server

Actual behavior

r_language_server fails to install

Expected behavior

r_language_server installs successfully

LspInstallInfo output

Pending servers (1) 
    ◍ r_language_server (failed)
        
        R version 4.1.3 (2022-03-10) -- "One Push-Up"
        Copyright (C) 2022 The R Foundation for Statistical Computing
        Platform: x86_64-redhat-linux-gnu (64-bit)
        
        R is free software and comes with ABSOLUTELY NO WARRANTY.
        You are welcome to redistribute it under certain conditions.
        Type 'license()' or 'licence()' for distribution details.
        
          Natural language support but running in an English locale
        
        R is a collaborative project with many contributors.
        Type 'contributors()' for more information and
        'citation()' on how to cite R or R packages in publications.
        
        Type 'demo()' for some demos, 'help()' for on-line help, or
        'help.start()' for an HTML browser interface to help.
        Type 'q()' to quit R.
        
        > options(langserver_library = "/home/jake/.local/share/nvim/lsp_servers/r_language_server.tmp");
        > options(repos = list(CRAN = "http://cran.rstudio.com/"));
        > rlsLib <- getOption("langserver_library");
        > install.packages("languageserversetup", lib = rlsLib);
        trying URL 'http://cran.rstudio.com/src/contrib/languageserversetup_0.1.2.tar.gz'
        Content type 'application/x-gzip' length 14111 bytes (13 KB)
        ==================================================
        downloaded 13 KB
        
        * installing *source* package ‘languageserversetup’ ...
        ** package ‘languageserversetup’ successfully unpacked and MD5 sums checked
        ** using staged installation
        ** R
        ** inst
        ** byte-compile and prepare package for lazy loading
        ** help
        *** installing help indices
          converting help for package ‘languageserversetup’
            finding HTML links ... done
            languageserver_add_to_rprofile          html  
            languageserver_detect                   html  
            languageserver_install                  html  
            languageserver_remove_from_rprofile     html  
            languageserver_startup                  html  
        ** building package indices
        ** testing if installed package can be loaded from temporary location
        ** testing if installed package can be loaded from final location
        ** testing if installed package keeps a record of temporary installation path
        * DONE (languageserversetup)
        
        The downloaded source packages are in
        	‘/tmp/Rtmpq9IWrx/downloaded_packages’
        > loadNamespace("languageserversetup", lib.loc = rlsLib);
        <environment: namespace:languageserversetup>
        > 
        > languageserversetup::languageserver_install(
        +     fullReinstall = TRUE,
        +     confirmBeforeInstall = FALSE,
        +     strictLibrary = TRUE
        + );
        The install-github.me service is deprecated, please stop using it.
        Downloading GitHub repo REditorSupport/languageserver@master
        shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
        shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
        collections (NA    -> 0.3.5 ) [c(name = "collections", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        fs          (NA    -> 1.5.2 ) [c(name = "fs", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        jsonlite    (NA    -> 1.8.0 ) [c(name = "jsonlite", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        roxygen2    (NA    -> 7.1.2 ) [c(name = "roxygen2", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        stringi     (NA    -> 1.7.6 ) [c(name = "stringi", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        styler      (NA    -> 1.7.0 ) [c(name = "styler", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        xml2        (NA    -> 1.3.3 ) [c(name = "xml2", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        ps          (NA    -> 1.6.0 ) [c(name = "ps", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        lazyeval    (NA    -> 0.2.2 ) [c(name = "lazyeval", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        crayon      (1.4.2 -> 1.5.1 ) [c(name = "crayon", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "1.4.2")]
        desc        (1.3.0 -> 1.4.1 ) [c(name = "desc", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "1.3.0")]
        remotes     (2.4.0 -> 2.4.2 ) [c(name = "remotes", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "2.4.0")]
        withr       (2.4.3 -> 2.5.0 ) [c(name = "withr", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "2.4.3")]
        processx    (NA    -> 3.5.3 ) [c(name = "processx", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        cli         (2.5.0 -> 3.2.0 ) [c(name = "cli", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "2.5.0")]
        rprojroot   (2.0.2 -> 2.0.3 ) [c(name = "rprojroot", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "2.0.2")]
        glue        (NA    -> 1.6.2 ) [c(name = "glue", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        brio        (NA    -> 1.1.3 ) [c(name = "brio", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        digest      (NA    -> 0.6.29) [c(name = "digest", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        ellipsis    (NA    -> 0.3.2 ) [c(name = "ellipsis", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        evaluate    (0.14  -> 0.15  ) [c(name = "evaluate", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "0.14")]
        lifecycle   (1.0.0 -> 1.0.1 ) [c(name = "lifecycle", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "1.0.0")]
        magrittr    (NA    -> 2.0.3 ) [c(name = "magrittr", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        pkgload     (1.2.1 -> 1.2.4 ) [c(name = "pkgload", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "1.2.1")]
        rlang       (NA    -> 1.0.2 ) [c(name = "rlang", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        waldo       (0.2.5 -> 0.4.0 ) [c(name = "waldo", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "0.2.5")]
        diffobj     (NA    -> 0.3.5 ) [c(name = "diffobj", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        fansi       (NA    -> 1.0.3 ) [c(name = "fansi", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        tibble      (NA    -> 3.1.6 ) [c(name = "tibble", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        pillar      (1.6.2 -> 1.7.0 ) [c(name = "pillar", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "1.6.2")]
        vctrs       (NA    -> 0.4.0 ) [c(name = "vctrs", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        utf8        (NA    -> 1.2.2 ) [c(name = "utf8", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        curl        (NA    -> 4.3.2 ) [c(name = "curl", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        mime        (NA    -> 0.12  ) [c(name = "mime", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        openssl     (NA    -> 2.0.0 ) [c(name = "openssl", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        askpass     (NA    -> 1.1   ) [c(name = "askpass", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        sys         (NA    -> 3.4   ) [c(name = "sys", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        yaml        (NA    -> 2.3.5 ) [c(name = "yaml", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        xfun        (NA    -> 0.30  ) [c(name = "xfun", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        R.methodsS3 (NA    -> 1.8.1 ) [c(name = "R.methodsS3", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        R.oo        (NA    -> 1.24.0) [c(name = "R.oo", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        R.utils     (NA    -> 2.11.0) [c(name = "R.utils", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        rex         (1.2.0 -> 1.2.1 ) [c(name = "rex", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "1.2.0")]
        codetools   (NA    -> 0.2-18) [c(name = "codetools", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        testthat    (NA    -> 3.1.3 ) [c(name = "testthat", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        knitr       (1.33  -> 1.38  ) [c(name = "knitr", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "1.33")]
        brew        (1.0-6 -> 1.0-7 ) [c(name = "brew", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "1.0-6")]
        commonmark  (NA    -> 1.8.0 ) [c(name = "commonmark", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        purrr       (NA    -> 0.3.4 ) [c(name = "purrr", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        R.cache     (NA    -> 0.15.0) [c(name = "R.cache", repos = "http://cran.rstudio.com/", pkg_type = "source", sha = "NA")]
        Skipping 7 packages not available: parallel, tools, utils, grDevices, methods, stats, graphics
        Installing 57 packages: collections, fs, jsonlite, parallel, roxygen2, stringi, styler, tools, utils, xml2, ps, lazyeval, grDevices, methods, crayon, desc, remotes, withr, processx, cli, rprojroot, stats, graphics, glue, brio, digest, ellipsis, evaluate, lifecycle, magrittr, pkgload, rlang, waldo, diffobj, fansi, tibble, pillar, vctrs, utf8, curl, mime, openssl, askpass, sys, yaml, xfun, R.methodsS3, R.oo, R.utils, rex, codetools, testthat, knitr, brew, commonmark, purrr, R.cache
        Installing packages into ‘/home/jake/.local/share/nvim/lsp_servers/r_language_server.tmp’
        (as ‘lib’ is unspecified)
        Error: Failed to install 'languageserver' from GitHub:
          (converted from warning) packages ‘tools’, ‘utils’, ‘grDevices’, ‘methods’, ‘stats’, ‘graphics’ are base packages, and should not be updated
        In addition: Warning message:
        In missing_devel_warning(pkgdir) :
          Package languageserver has compiled code, but no suitable compiler(s) were found. Installation will likely fail.
          Install compilers via your Linux package manager.
        Execution halted
        spawn: R failed with exit code 1

Installation log

[DEBUG Fri 08 Apr 2022 02:02:34 PM PDT] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:715: Queuing server="r_language_server", version="" for installation
[INFO  Fri 08 Apr 2022 02:02:34 PM PDT] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:668: Starting install server_name="r_language_server", requested_version=""
[DEBUG Fri 08 Apr 2022 02:02:34 PM PDT] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:28: Executing installer for name="r_language_server"
[DEBUG Fri 08 Apr 2022 02:02:34 PM PDT] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:54: fs: mkdirp /home/jake/.local/share/nvim/lsp_servers/r_language_server.tmp
[DEBUG Fri 08 Apr 2022 02:02:34 PM PDT] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:117: Spawning cmd="R", spawn_opts={
  args = { "--no-save" },
  cwd = "/home/jake/.local/share/nvim/lsp_servers/r_language_server.tmp"
}
[DEBUG Fri 08 Apr 2022 02:02:34 PM PDT] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:163: Spawned with pid 70350
[DEBUG Fri 08 Apr 2022 02:02:46 PM PDT] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/process.lua:149: Job pid=70350 exited with exit_code=1, signal=0
[ERROR Fri 08 Apr 2022 02:02:46 PM PDT] ...installer/lua/nvim-lsp-installer/core/installer/init.lua:48: Installation failed, name="r_language_server", error={
  exit_code = 1,
  <metatable> = {
    __tostring = <function 1>
  }
}
[DEBUG Fri 08 Apr 2022 02:02:46 PM PDT] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:34: fs: rmrf /home/jake/.local/share/nvim/lsp_servers/r_language_server.tmp
[DEBUG Fri 08 Apr 2022 02:02:46 PM PDT] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:34: fs: rmrf /home/jake/.local/share/nvim/lsp_servers/r_language_server.tmp
[DEBUG Fri 08 Apr 2022 02:02:46 PM PDT] ...rt/nvim-lsp-installer/lua/nvim-lsp-installer/core/fs.lua:39: fs: rmrf failed
[INFO  Fri 08 Apr 2022 02:02:46 PM PDT] ...-installer/lua/nvim-lsp-installer/ui/status-win/init.lua:687: Installation completed server_name="r_language_server", success=false

Healthcheck

nvim-lsp-installer: require("nvim-lsp-installer.health").check()
========================================================================
## nvim-lsp-installer report
  - OK: neovim version >= 0.6.0
  - WARNING: **Go**: not available
  - WARNING: **Composer**: not available
  - WARNING: **PHP**: not available
  - WARNING: **julia**: not available
  - OK: **bash**: `GNU bash, version 5.1.16(1)-release (x86_64-redhat-linux-gnu)`
  - OK: **python3_host_prog**: `Python 3.10.2`
  - OK: **tar**: `tar (GNU tar) 1.34`
  - OK: **gzip**: `gzip 1.11`
  - OK: **wget**: `GNU Wget 1.21.3 built on linux-gnu.`
  - OK: **python3**: `Python 3.10.2`
  - OK: **node**: `v16.14.1`
  - OK: **Ruby**: `ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux]`
  - OK: **curl**: `curl 7.82.0 (x86_64-redhat-linux-gnu) libcurl/7.82.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.46.0 OpenLDAP/2.6.1`
  - OK: **sh**: `Ok`
  - OK: **java**: `Ok`
  - OK: **RubyGem**: `3.3.7`
  - OK: **javac**: `javac 17.0.2`
  - OK: **pip3**: `pip 21.3.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)`
  - OK: **npm**: `8.5.0`

Screenshots

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant