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

Aberta
#1,923 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
r, typescript
Domínio
devtools

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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?

Linguagem predominante
TypeScript
Estrelas
1.2k
Forks
152
Merge médio
18h 28min
PRs com merge (30d)
56

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de REditorSupport/vscode-R

Todas as issues de REditorSupport/vscode-R

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.