Skip to content

sess integration lost when VS Code restores an R terminal #1799

Description

@grcatlin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions