Bug on restarting debugging on tests for 3rd time #24507
Labels
area-testing
bug
Issue identified by VS Code Team member as probable bug
triage-needed
Needs assignment to the proper sub-team
Steps:
Details on debugging this issue:
I have narrowed down the issue with the fs path check and it is related to the creation of the reader stream but only on mac (fifo related). I tried on windows, and cannot get the bug to occur but both @anthonykim1 and I get it on mac. I narrowed it down to the line
const reader = fs.createReadStream(pipeName, { encoding: 'utf-8' });
by running a test. I put the following code before and after the line, and after the line it stalls while before it succeeds:I did this 20+ times in different spots and the before and after this single line and it holds. So it looks like the creation of the reader creates a file lock - or at least causes it to mess up after multiple times. I attempted: changing the reader and writer to only allow for 64 bits of info transferred, only impact is making it stall sooner. I also moved the code which it kept breaking on before the creation of the reader which caused that code to no longer fail, but more code (I assume just more file access since there are so many places that might happen) fail after the reader is created.
The text was updated successfully, but these errors were encountered: