REditorSupport / REditorSupport/vscode-R

Gotcha for people with `conda`

Offen
#689 7 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug
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:

image

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

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Ö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

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.