Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix pty support on Macs #20037

Merged
merged 2 commits into from
Aug 3, 2023
Merged

chore: fix pty support on Macs #20037

merged 2 commits into from
Aug 3, 2023

Conversation

mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Aug 3, 2023

Many of the CI tests have been failing on my M2 Pro mac (Ventura 13.4) when running inside of a vscode terminal (a strange ENOTTY error). This modifies the pty-handling code to use libc directly rather than the older pty library that appears mostly unmaintained (outside of @littledivy's fork).

As a bonus, this should allow us to run pty tests on the mac CI runner.

After this PR, the tests now complete with 100% success on my local machine. Before this PR, I needed to pass CI=true to get my local test suite to pass.

@mmastrac mmastrac changed the title chore: Fix pty support on Macs chore: fix pty support on Macs Aug 3, 2023
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, very nice!

@mmastrac mmastrac merged commit 0f07dc9 into denoland:main Aug 3, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants