-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
EPIPE write failure while debugging after upgrading to 1.49 #106484
Comments
What debugger are you using? |
The built-in debugger with Visual Studio Code. This occurs at project start-up when clicking the debug icon. Here is an entry from the
|
And the problem reproduces after disabling all extensions? |
@weinand Yes on both the Debian version and the Mac OSX version of Visual Studio Code 1.49. The only thing that fixed it was rolling back to 1.48 (which fixed it on both computers). |
See the solution here #106484 (comment) Previous commentDoes it make a difference if you:
(only one at a time, not both) |
@weinand I can give this a shot this weekend. Right now I need the downgraded version for work-related tasks, so I'll have to carve out some time to try it. |
Same problem, I dont have preLaunchTask and the |
Can you also try adding |
Yep, there. (It'll be recognized if you change type to pwa-node). Also, @nico93f what kind of program are you running? I saw this yesterday in Next.js which was caused by a bug that was fixed in recent versions... wondering if other tools are running into a similar problem. |
Oh btw, it didn't work 😛 |
Looks like the EPIPE my Next.js is coming from Node's inspector internals, triggered originally from jest-worker. Continuing to investigate. Can you collecct trace logs using these instructions?
|
Actually |
It should, since the old debugger doesn't know how to debug child processes (which is where the one repro case I have fails). Are you able to collect a trace log @maximedupre? |
@connor4312 Just sent the trace log to your email address |
I think I found the issue! Please try adding "outputCapture": "std", in your launch.json as a workaround (may need to change This fixes the issue for me; let me know if it does the same for you. |
Yep that fixes the issue! Didn't need to change to |
Awesome, thank you for confirming. I will put in a fix for the recovery release. |
This was intended to destroy a pipe reader, but that reader was removed at some point and this code was left in there. Interestingly it does not seem to cause an issue for most simple program, so I didn't catch this, but causes 'random' failures later on. Fixes microsoft/vscode#106484
* Make debugger work in VS Code 1.49 by adding outputCapture workaround [microsoft/vscode#106484 (comment)] * Elide node_modules from stack traces by default * Remove command line flag that's enabled by default.
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
After upgrading to 1.49, both a Linux Pop OS machine and a Mac OSX machine on my team started having the following error: When attempting to launch the debugger, we would receive a failure to write EPIPE error. The error triggers in the
tslib
package. In our particular situation, it starts with an attempt tocreateConnection()
with the TypeORM package (which usesnode-mssql
andtedious
). Stepping into that breakpoint trigger thetslib
failure and the EPIPE message.Rolling back to VSCode 1.48 eliminated the problem.
The text was updated successfully, but these errors were encountered: