Skip to content

Conversation

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Feb 10, 2021

Fixes #74620

@Tyriar Tyriar added this to the February 2021 milestone Feb 10, 2021
@Tyriar Tyriar marked this pull request as draft February 10, 2021 20:08
@Tyriar Tyriar self-assigned this Feb 10, 2021
@joaomoreno joaomoreno changed the base branch from master to main February 15, 2021 08:51
@Tyriar
Copy link
Member Author

Tyriar commented Feb 16, 2021

Think I finally figured out the problem now that I can log:

The terminal process failed to launch: A native exception occurred during launch (Cannot find module '/__w/1/VSCode-linux-x64/resources/app/node_modules.asar/node-pty/lib/index.js'. Please verify that the package.json has a valid "main" entry).

@Tyriar
Copy link
Member Author

Tyriar commented Feb 18, 2021

Unfortunately this is going to be merged without the fix to #76548, the problem I've been stuck on for a few days was caused once again by worker_threads but this time it failed only within our packages build in Azure DevOps because that tests with our product build that has extra optimization steps which includes packaging node modules via asar.

It seems that asar simply does not support resolving lookups in workers based on my own findings and from some searching (eg). So I need to make a minimal repro and create an issue in Electron. There is asar-node seemingly to solve this problem but I don't think it has the kind of usage we need, it does monkey patching to accomplish its goals 😱 and it's an unexpectedly large amount of code.

@Tyriar Tyriar merged commit fdaebc1 into main Feb 18, 2021
@Tyriar Tyriar deleted the tyriar/megan branch February 18, 2021 13:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a node-pty host process with flow control and event batching

3 participants