REditorSupport / REditorSupport/languageserver

languageserver and help page viewer not working in windows10 and miniforge environment

Open
#648 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
675
Forks
118
Avg merge
1d 37m
Merged PRs (30d)
11

Description

languageserver and help page viewer not working:

the OUTPUT panel message when I open vscode workspace:
R Language Server (21456) started
R Language Server (21456) exited with exit code 3221225781

I clicked "HELP PAGES>>Home" button:
Couldn't show help for path: doc/html/index.html
I clicked "Clear Cache & Restart Help Server", it still didn't work.

R:Run Selection/Line in R Interactive Terminal is OK, but when I run "?read.table", the message:
Couldn't show help for path: /library/utils/html/read.table.html

the message when I moved the mouse cursor over an R function:
Failed to get list of R functions. Make sure that jsonlite is installed and r.rpath.windows points to a valid R executable.
I've set the correct r.rpath.windows and jsonlite, languageserver is installed, but the R package jsonlite wasn't auto loaded when I started the R Interactive Terminal.

Some information:
Vscode Version: 1.85.1
OS: Windows_NT x64 10.0.19045
R Extension version: v2.8.2
conda 23.3.1
mamba 1.4.2
conda path: D:\miniforge3\condabin\conda.bat
R path: D:\miniforge3\envs\r\lib\R\bin\x64\R.exe, D:\miniforge3\envs\r\Scripts\R.exe

workspace setting:
"settings": {
"Command Prompt": {
"path": [
"${env:windir}\Sysnative\cmd.exe",
"${env:windir}\System32\cmd.exe"
],
"args": ["/K", "D:\miniforge3\Scripts\activate.bat","r"],
"icon": "terminal-cmd"
},
},
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"terminal.integrated.env.windows": { "PATH":"D:\miniforge3\envs\r;D:\miniforge3\envs\r\Scripts;D:\miniforge3\envs\r\Library\bin;D:\miniforge3\envs\r\Library\mingw-w64\bin;D:\miniforge3\envs\r\lib\R\bin\x64"
},
"python.defaultInterpreterPath": "D:\miniforge3\envs\py\python.exe",
"r.rterm.windows": "D:\miniforge3\envs\r\lib\R\bin\R.exe",
"r.rpath.windows": "D:\miniforge3\envs\r\lib\R\bin\R.exe",
"r.lsp.diagnostics": false,
"r.lsp.promptToInstall": false,
"r.plot.useHttpgd": true,
"r.libPaths": [
"D:\miniforge3\envs\r\lib\R\library",
],
"r.rterm.option": [
"--no-save",
"--no-restore",
"--r-binary=D:\miniforge3\envs\r\lib\R\bin\R.exe"
],
}

Can someone help?
Thank you very much~

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are named. Start by reproducing the R Language Server exit code and failed help-page requests in the reported Windows 10 Miniforge environment, then inspect the configured R executable, jsonlite/languageserver loading, and help paths. Done means the server remains running, hover function lookup works, and both Home and ?read.table help pages open.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.