REditorSupport / REditorSupport/languageserver
Installation issue
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 675
- Forks
- 118
- Avg merge
- 1d 37m
- Merged PRs (30d)
- 11
Description
I am guessing there is something obvious I missed.
- I am on Ubuntu and installed the needed package
- I installed
remotes::install_github("REditorSupport/languageserver"in R
When I ran :LspInstall r_server_language I got this:
◍ 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-pc-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/user/.local/share/nvim/lsp_servers/r_language_server.tmp");
> options(repos = list(CRAN = "http://cran.rstudio.com/"));
> rlsLib <- getOption("langserver_library");
>
> didInstallRemotes <- FALSE;
> tryCatch(
+ expr = { library("remotes") },
+ error = function (e) {
+ install.packages("remotes", lib = rlsLib);
+ loadNamespace("remotes", lib.loc = rlsLib);
+ didInstallRemotes <- TRUE;
+ }
+ );
>
> remotes::install_github("jozefhajnala/languageserversetup", lib = rlsLib);
Downloading GitHub repo jozefhajnala/languageserversetup@HEAD
checking for file ‘/tmp/RtmpavrCHy/remotesee1e7e9b239f/jozefhajnala-languageserversetup-3daf44a/DESCRIPTION’ ...
✔ checking for file ‘/tmp/RtmpavrCHy/remotesee1e7e9b239f/jozefhajnala-languageserversetup-3daf44a/DESCRIPTION’
─ preparing ‘languageserversetup’:
checking DESCRIPTION meta-information ...
✔ checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Omitted ‘LazyData’ from DESCRIPTION
─ building ‘languageserversetup_0.1.2.900.tar.gz’
* installing *source* package ‘languageserversetup’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** 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)
>
> if (didInstallRemotes) {
+ remove.packages("remotes", lib = rlsLib);
+ }
>
> loadNamespace("languageserversetup", lib.loc = rlsLib);
<environment: namespace:languageserversetup>
> languageserversetup::languageserver_install(
+ fullReinstall = TRUE,
+ confirmBeforeInstall = FALSE,
+ strictLibrary = TRUE
+ );
trying URL 'http://cran.rstudio.com/src/contrib/remotes_2.4.2.tar.gz'
Content type 'application/x-gzip' length 152540 bytes (148 KB)
==================================================
downloaded 148 KB
sh: 0: getcwd() failed: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Error in tools:::.install_packages() :
current working directory cannot be ascertained
sh: 0: getcwd() failed: No such file or directory
The downloaded source packages are in
‘/tmp/RtmpavrCHy/downloaded_packages’
Downloading GitHub repo REditorSupport/languageserver@master
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Error: Failed to install 'languageserver' from GitHub:
Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
In addition: Warning message:
In utils::install.packages("remotes", lib = rlsLib) :
installation of package ‘remotes’ had non-zero exit status
Execution halted
spawn: R failed with exit code 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing :LspInstall r_server_language on Ubuntu with the reported R version and inspect the getcwd/current working directory errors in the installation output. Trace the installation path involving languageserversetup and REditorSupport/languageserver; done means the command installs the server successfully or the issue documents a confirmed, reproducible fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, ubuntu
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100