r.libPaths setting for renv-enabled projects not working
Maintainer thường phản hồi trong vòng 1 ngày
@ElianHugh đang làm issue này rồi.
Từ ngày 14/2/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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).
- Ngôn ngữ chính
- TypeScript
- Star
- 1.2k
- Fork
- 147
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 65
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của REditorSupport/vscode-R
-
[Bug]: `view` button sends explicit `.GlobalEnv` lookup to terminal instead of `View()` onlyĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
REditorSupport/vscode-R#1846 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
(feat) Additional Arrow supportCó thể đã có người làm @Fred-Wu đã nhận 10 ngày trước. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
REditorSupport/vscode-R#1785 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
REditorSupport/vscode-R#1859 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
REditorSupport/vscode-R#1851 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
REditorSupport/vscode-R#1850 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của REditorSupport/vscode-R
Issue tương tự
-
area: desktop area: website priority: P2 type: feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
appandflow/stim#3411 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rjsf-team/react-jsonschema-form#5485 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
lingdojo/kana-dojo#32090 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Friction: Org home and org switcher copy still say repositories and connected agents live in the personal accountCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởfriction
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kentcdodds/kody#3265 ·
Maintainer thường phản hồi trong vòng 1 ngày