Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

sess integration lost when VS Code restores an R terminal

Aberta
#1,799 0 comentários 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
48/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
r, typescript, vscode

Direção de pesquisa

Start by reproducing the macOS sequence with r.createRTerm: restore VS Code while the R terminal remains open, then inspect the sess IPC error. Compare this with creating a fresh R terminal and with the arf and base R consoles. Done means sess reconnects after restoration and View() and plot() continue opening in VS Code rather than XQuartz.

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

Descrição

bug

After reopening VS Code with an R terminal still present, sess may fail to reconnect. View() and plots then open in native windows instead of VS Code. This reproduces on macOS as described below.

  1. Open a directory in VS Code - be sure there are no active terminals.
  2. Create an R terminal r.createRTerm. [sess] Connected to VS Code should be printed. View() and plot() should work as expected.
Image
  1. Quit VS Code without closing the active R terminal. Or swap to a different directory workbench.action.openRecent (ctrl + r) without closing the active R terminal.
  2. Open VS Code again or ctrl + r back to the original directory, sess shows an IPC error.
Image
  1. Run the same commands as earlier. Now, XQuartz pops up instead.
Image

Originally posted by @grcatlin in #1794

As I mentioned earlier, I can fix it by killing the old terminal and then making a new R terminal. Oddly, I cannot reproduce this on Windows. The same error occurs using both arf (above) and the base R console.

Linguagem predominante
TypeScript
Estrelas
1.2k
Forks
139
Merge médio
19h 46min
PRs com merge (30d)
26

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.