REditorSupport / REditorSupport/vscode-R
Gotcha for people with `conda`
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.2k
- Forks
- 139
- Ø Merge
- 3 Std. 33 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
I recently discovered a bug that occurs for people with conda installations using radian -- if one has conda installed for python packages, VS code actively recommends using the "terminal.integrated.inheritEnv": false setting (it has a popup, then adds if you click yes).
BUT
that results in vscode-R not being able to find RHOME, and so if I launch radian, I get this error (it just flashes up for a moment -- had to screen record to see it -- they terminal closes, and I get a The terminal process "/Users/Nick/miniconda3/bin/radian" terminated with exit code: 1. popup:

I set my R_HOME var in both zsh and bash profiles, and if I open a zsh terminal in VSCode, radian works, and if I open a bash terminal in VSCode, radian works. It's only when it's launched by trying to run an R file that I have a problem.
Adding this to settings:
"terminal.integrated.env.osx": {
"R_HOME": "/Library/Frameworks/R.framework/Resources/"
}
(based on advice in #431) fixes the problem.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Es ist keine Quelldatei und kein Test angegeben. Reproduziere das Problem, indem du radian über eine R-Datei startest, wobei terminal.integrated.inheritEnv auf false gesetzt ist, vergleiche dies mit den funktionierenden Shell-Starts und dem R_HOME-Workaround aus #431, und definiere „fertig“ als einen erfolgreichen Start, ohne dass dieser Workaround erforderlich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r, typescript, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100