r.libPaths setting for renv-enabled projects not working
维护者通常 1 天内回复
@ElianHugh 已经在做这个了。
开始于 2024年2月14日。
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
The instructions given in the Wiki for installing languageserver in a separate minimal library and having vscode-R load it from there do not work for me. The r.libPaths setting seems to have no effect. I get the message
VSCode R Session Watcher requires jsonlite, rlang. Please install manually in order to use VSCode-R.
during R startup in projects using renv and can't send commands to R, use the help viewer, etc. When I use .libPaths() in the R session to point R to the standalone library manually, I can load languageserver and jsonlite without a problem.
To Reproduce
Follow the steps outlined in the Wiki, then create an R terminal in a renv-enabled project. The error message appears and help viewer etc. do not work.
Can you fix this issue by yourself? (We appreciate the help)
No
(If applicable) Please attach setting.json
{
"security.workspace.trust.untrustedFiles": "open",
"editor.largeFileOptimizations": false,
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.nonBasicASCII": false,
"r.plot.useHttpgd": true,
"editor.fontLigatures": true,
"editor.fontFamily": "'CaskaydiaCove Nerd Font', Menlo, Monaco, 'Courier New', monospace",
"files.autoSave": "afterDelay",
"r.rterm.option": [
"--restore",
"--save"
],
"typescript.suggest.paths": false,
"javascript.suggest.paths": false,
"workbench.startupEditor": "newUntitledFile",
"r.rterm.mac": "/opt/homebrew/bin/radian",
"editor.fontSize": 13,
"terminal.integrated.fontSize": 13,
"editor.minimap.enabled": false,
"terminal.integrated.defaultLocation": "editor",
"window.confirmBeforeClose": "keyboardOnly",
"terminal.integrated.confirmOnExit": "hasChildProcesses",
"editor.formatOnType": true,
"editor.tabSize": 2,
"editor.inlineSuggest.enabled": true,
"codeium.enableConfig": {
"*": true,
"rmd": true,
"plaintext": true
},
"diffEditor.ignoreTrimWhitespace": false,
"gitblame.statusBarMessageFormat": "${author.name} (${commit.summary, 30}, ${time.ago})",
"codeium.enableSearch": true,
"editor.acceptSuggestionOnEnter": "off",
"editor.accessibilitySupport": "off",
"latex-workshop.latex.autoBuild.run": "never",
"r.bracketedPaste": true,
"r.libPaths": [
"/Users/user/.R-pkgs-vscode/renv/library/R-4.3/aarch64-apple-darwin20"
]
}
(where /Users/user is my user folder)
Expected behavior
languageserver should be loaded from the library specified in the r.libPaths setting, help viewer etc. should work.
Environment (please complete the following information):
- OS: macOS 14.2.1
- VSCode Version: 1.85.2
- R Version: 4.3.2
- vscode-R version: 2.8.2
Additional context
Maybe additional settings have to be changed that are not mentioned in the Wiki? I read about "r.lsp.args": ["--vanilla"], which did not have any effect, and r.lsp.libPath, which does not seem to exist any more (and, unsurprisingly, also has no effect).
- 主要语言
- TypeScript
- 星标
- 1.2k
- 派生
- 147
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 65
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
REditorSupport/vscode-R 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
REditorSupport/vscode-R#1846 · 2 条评论 ·
维护者通常 1 天内回复
-
(feat) Additional Arrow support可能已有人在做 @Fred-Wu 于 11 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 72/100
REditorSupport/vscode-R#1785 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 12/100
REditorSupport/vscode-R#1859 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
REditorSupport/vscode-R#1851 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 48/100
REditorSupport/vscode-R#1850 · 4 条评论 ·
维护者通常 1 天内回复
查看 REditorSupport/vscode-R 的全部 Issue
相似的 Issue
-
by: ai-assisted frontend good-for: new-member spike
难度 2/5 1-3 小时 新手友好度 68/100
Northeastern-Electric-Racing/Argos#847 ·
维护者通常 4 天内回复
-
难度 1/5 1-3 小时 新手友好度 84/100
SignalK/freeboard-sk#990 ·
维护者通常 1 天内回复
-
[missing-inheritance] audit review (1 preset)可能已有人在做 @github-actions 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
osmberlin/tagging-schema-browser#363 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
Albert-Weasker/niubigeo#205 ·
维护者通常 1 天内回复
-
area/frontend area/v2 kind/bug priority/needs-triage
难度 2/5 1-3 小时 新手友好度 70/100
kubeflow/notebooks#1498 · 1 条评论 ·
维护者通常 1 天内回复