vscode-R 3.2.2 spawns 8 Rterm processes when opening a trivial .R file

Aperta
#1,923 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
r, typescript
Ambito
devtools

Direzione di ricerca

Reproduce on a clean profile with only the R extensions and watch the process tree when a trivial .R file opens. The payload names the settings r.sessionWatcher, r.lsp.enabled, r.interactive.restore and r.interactive.executionTarget, so trace which startup path launches the extra Rterm.exe workers, starting from the session-startup code. Done means either a setting or code change that stops the automatic spawning, or a confirmed diagnosis of why it is expected.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Environment
  • VS Code: 1.113.0
  • OS: Windows 11 (10.0.26300), x64
  • vscode-R: 3.2.2
  • R: 4.5.1
Reproduction
  1. Use a clean VS Code profile containing only REditorSupport.r and REditorSupport.r-syntax.
  2. Open a trivial test.R containing x <- 1.
  3. Do not run any R code.
  4. Observe the R process tree.

Result: one Rterm.exe starts at about 243 MB and immediately spawns 7 child Rterm.exe processes at roughly 86-105 MB each. This happens on every new window/profile and can exceed 1 GB per R session.

The same behavior occurs with:

{
  "r.sessionWatcher": false,
  "r.lsp.enabled": false,
  "r.interactive.restore": false,
  "r.interactive.executionTarget": "terminal"
}

Control tests:

  • A profile containing only REditorSupport.r-syntax produces no R/Rterm processes.
  • Running Rterm.exe --vanilla -e 1 directly produces no child Rterm processes.

This strongly suggests the vscode-R startup path is spawning the workers, not VS Code itself or the base R installation.

Question

Is this automatic worker startup expected? If not, what setting disables it, or what diagnostic output should I collect for the R Interactive/session startup path?

Lingua principale
TypeScript
Stelle
1.2k
Fork
152
Merge medio
18h 28m
PR unite (30g)
56

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di REditorSupport/vscode-R

Tutte le issue di REditorSupport/vscode-R

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.