Skip to content

Conversation

@aduh95
Copy link
Contributor

Alternative to #41335 that got stalled.
Fixes: #41330

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. tty Issues and PRs related to the tty subsystem. labels Jul 12, 2022
@aduh95aduh95 added the review wanted PRs that need reviews. label Aug 1, 2022
@aduh95
Copy link
ContributorAuthor

/cc @nodejs/tty

@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@BridgeARBridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it useful to handle this gracefully? I would rather see an error that the stream is already destroyed? Otherwise it's difficult to know what happens as a user.

@aduh95
Copy link
ContributorAuthor

@BridgeAR see the linked issue, and I have also been annoyed by that error in other occasions. I struggled to find a good way to reproduce the error reliably, and I agree that the test as-is doesn't feel like something we would necessarily want to support, but the issue is real, and it looks like to me that fixing it is less problematic than not fixing it.

@aduh95aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 24, 2022
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 24, 2022
@nodejs-github-botnodejs-github-bot merged commit ab89024 into nodejs:mainAug 24, 2022
@nodejs-github-bot
Copy link
Collaborator

Landed in ab89024

@aduh95aduh95 deleted the fix-tty-TypeError branch August 25, 2022 14:06
sidwebworks pushed a commit to sidwebworks/node that referenced this pull request Aug 26, 2022
RafaelGSS pushed a commit that referenced this pull request Sep 5, 2022
@RafaelGSSRafaelGSS mentioned this pull request Sep 5, 2022
Fyko pushed a commit to Fyko/node that referenced this pull request Sep 15, 2022
targos pushed a commit that referenced this pull request Sep 16, 2022
juanarbol pushed a commit that referenced this pull request Oct 10, 2022
@juanarboljuanarbol mentioned this pull request Oct 11, 2022
juanarbol pushed a commit that referenced this pull request Oct 11, 2022
guangwong pushed a commit to noslate-project/node that referenced this pull request Jan 3, 2023
guangwong pushed a commit to noslate-project/node that referenced this pull request Jan 3, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ciPRs that need a full CI run.review wantedPRs that need reviews.ttyIssues and PRs related to the tty subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Node in terminal window gives error - Cannot read property 'setRawMode' of null

4 participants

@aduh95@nodejs-github-bot@joyeecheung@BridgeAR