Skip to content

PTY Host Error when runing R code on MacOS #1654

Open

Description

@thomashusson29

Does this issue occur when all extensions are disabled?: Both

VS Code Version: 1.106.3
OS Version: Mac OS Tahoe 26.1

Steps to Reproduce:
Ran R code in VS Code
Code failed to complete, generated error message: "The connection to the terminal's pty host process is unresponsive, terminals may stop working. Click to manually restart the pty host."

Especially with large chunks of R code (does not happen in Rstudio or R terminal)

Clicks to restart, re-runs code, error arises again, but i lost all of my environnement

Image

Activity

  1. guscastilloa commented on Jan 7, 2026

    @guscastilloa

    I also have this issue. I ran 36 lines all at once and got the same error and it has been happening for a long while. Found this similar issue microsoft/vscode#239379 in the VSCode repo that addressed this same error.

  2. thomashusson29 commented on Jan 8, 2026

    @thomashusson29
    Author

    I also have this issue. I ran 36 lines all at once and got the same error and it has been happening for a long while. Found this similar issue microsoft/vscode#239379 in the VSCode repo that addressed this same error.

    Maybe it can help you, but I haven't this bug in Positron or Cursor... I can execute > 1000 lines of code in one click but with VScode it happens with < 50 lines of code.

  3. ThomasSoeiro commented on Sep 22, 2026

    @ThomasSoeiro
    Collaborator

    @thomashusson29 or @guscastilloa Can you reproduce in a recent version of VSCode?

    See also microsoft/vscode#252018

    @eitsupi @Fred-Wu @grantmcdermott can you please add the "needs information" tag?

  4. ThomasSoeiro commented on Sep 26, 2026

    @ThomasSoeiro
    Collaborator

    @eitsupi @Fred-Wu @grantmcdermott Does any of you have a Mac to try to reproduce this issue?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions