REditorSupport / REditorSupport/vscode-R
Vscode R LSP cannot work with a R installed in conda env
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Hello guys. I am using Vscode to work on R language for some data analyses. The r-base was installed in a conda environment. And I found that the R terminal cannot work with barely configuration of r.path.xx and r.term.xx pointing to the R.exe in conda env. But with the Python Addon, I can activate a conda env before I start a R terminal.
The R interperter itself can work prefectly after I Python: Select Interperter to configure which conda env to be use. But I found that the R Language Server seem to work independently and doesn’t influenced by the Python: Select Interperter. As the result, the R LSP launched without activating correct conda env and the R launched failed due to missing dll files. How can I launch the R LSP in a conda env?
By the way, I found that an r-base installed by conda cannot work without activating its conda env but a R installed by the CRAN R installer can be use at anywhere. It works even copy the whole directory to another PC. What makes this diffrence and can I make the conda r-base work in such a standalone mode?
Contributor guide
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 with the VS Code R extension's handling of r.path.xx and r.term.xx, then compare how its R language server launch differs from the Python extension's conda interpreter activation. Reproduce the failure with an r-base installation in a conda environment and verify whether the R LSP can launch with the required environment and DLLs available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- anaconda, r, typescript, vscode
- Domain
- devtools, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100