REditorSupport / REditorSupport/vscode-R
Setup with conda installed R: attaching active Terminal fails
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 139
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 5
Description
Describe the bug
conda installed packages are not found;
not possible to attach active terminal session.
To Reproduce
Use following environment file to install R
---
name: r
channels:
- conda-forge
dependencies:
- r-base
- r-renv
- r-languageserver
- r-httpgd
- radian
and run
conda create -f environment.yml
to install the environment.
Ensure the settings as mentioned below.
Next clikc on R: (not attached) in the status bar in VSCode and get the error
The terminal process "<path to base>/.conda/envs/r/bin/radian '--no-save', '--no-restore'" terminated with exit code: 1.
Can you fix this issue by yourself? (We appreciate the help)
No
(If applicable) Please attach setting.json
"r.rpath.linux": "<path to base>/.conda/envs/r/bin/R",
"r.rterm.linux": "<path to base>/.conda/envs/r/bin/radian",
"r.libPaths": ["<path to base>/.conda/envs/r/lib/R/library"],
Expected behavior
Terminal should attach
Screenshots
If applicable, add screenshots to help explain your problem.
You can show the keyboard contents by pressing F1 and Developer: toggle screencast mode
Environment (please complete the following information):
- OS: macOS 14.2.1 with vscode server on rocky 8.6
- VSCode Version:1.86.1
- R Version: 4.3.2
- vscode-R version: v2.8.2
Additional context
I already tried what is suggested here https://github.com/REditorSupport/vscode-R/wiki/R-Session-watcher#advanced-usage-for-self-managed-r-sessions as mentioned in this issue
EDIT:
There are also following related issues
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
Reproduce the failure with the provided environment.yml and the listed r.rpath.linux, r.rterm.linux, and r.libPaths settings, then inspect how the extension attaches the active terminal. Compare the behavior with the linked session-watcher and radian issues. Done means the conda-installed R environment can attach its terminal without exit code 1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- anaconda, linux, r, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100