You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using coc-r-lsp for R language completion in coc.nvim.
I believe the R environment needs to have the library 'languageserver' installed, but can this be substituted with an R environment inside a Singularity container?
I have configured ~/.config/nvim/coc-settings.json and r-languageserver-wrapper.sh as follows,
#!/bin/bash
singularity exec ~/r_env.sif R --slave -e "languageserver::run()"
However, when I open R file, nvim test.r I am still encountering errors.
R Language Server (138323) started
Error in loadNamespace(x) : there is no package called ‘languageserver’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
R Language Server (138323) exited with exit code 1
Is there a good way to use coc.nvim with the languageserver in R env within a Singularity container?
This discussion was converted from issue #4941 on March 14, 2024 10:20.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
However, when I open R file,
nvim test.r
I am still encountering errors.Is there a good way to use coc.nvim with the languageserver in R env within a Singularity container?
many thanks,
Beta Was this translation helpful? Give feedback.
All reactions