You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!s
Uncaught Error: The reader is already destroyed
at AsyncReader.destroy (/.../packages/cli/node_modules/@nodelib/fs.walk/out/readers/async.js:33:19)
at Readable.destroy (internal/streams/destroy.js:36:8)
at Readable.<anonymous> (/.../node_modules/fast-glob/out/providers/stream.js:21:41)
at Object.onceWrapper (events.js:421:28)
at Readable.emit (events.js:315:20)
at Readable.EventEmitter.emit (domain.js:547:15)
at /.../node_modules/fast-glob/out/utils/stream.js:16:40
at Array.forEach (<anonymous>)
at propagateCloseEventToSources (/.../node_modules/fast-glob/out/utils/stream.js:16:13)
Code sample
Here's a working reproduction:
Edit: you may need to fork the sandbox and restart the container
The text was updated successfully, but these errors were encountered:
Perhaps related, with the async API, something is still throwing uncaught errors when hitting filesystem permission issues.
However, this occurs on Windows only, it is probably due to a system call, and possibly the new efficient "modern mode"?.
Ubuntu catches the promise correctly. The above issue (stream error) is platform agnostic.
Environment
Actual behavior
Expected behavior
a. The stream ends
b. The stream keeps emitting data/errors
Suppressing error is an option, it's not ideal. I will resort to buffering all results via the async API for now.
Steps to reproduce
The following command is bound to hit some permission issues somewhere under the root filesystem:
It will output the following:
Code sample
Here's a working reproduction:
Edit: you may need to fork the sandbox and restart the container
The text was updated successfully, but these errors were encountered: