-
Notifications
You must be signed in to change notification settings - Fork 27
fix: fix node-pty packaging #664
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
Conversation
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
| "electron": "^38.2.1" | ||
| "electron": "^38.2.1", | ||
| "@lydell/node-pty": "1.1.0", | ||
| "node-pty": "1.1.0-beta39" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be needed at all anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i need regular node-pty for electron
dc816a9 to
97a28e4
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
I'm going to try to articulate the problem as best as I understand it at the moment. Web terminals are currently used in the current cases:
In order to make web terminals work we need to have access to a pty handle aka we have to use
node-pty. The problem is that we basically distribute two versions of mux: an electron variant for desktop usage, and a server variant.node-ptydoesn't bundle any linux prebuilds so when you runnpm install muxit has to build node-pty from source but it inevitably fails for a lot of cases because the environment lacks the build tools. To fix this you can use something like@lydell/node-ptybut then you break the electron use case because the prebuilds it bundles for mac aren't for the electron ABI and it doesn't bundle source files so it can't build from source.The fucked solution I came up with is to basically include both with
@lydell/node-ptyas an optional dependency. What happens at runtime is it tries to use@lydell/node-ptyfirst, (which should succeed for the linux use case) and if not falls back to regular olenode-ptywhich should be fine for desktop applications.Developers have to run
make devmoving forward if developing for the desktop use case (which they have to anyway?)