-
Notifications
You must be signed in to change notification settings - Fork 60
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
Feature Request: Emit error on early 7z process termination #105
Comments
It looks like the above workaround doesn't even work. Sometimes |
Which method do you use for killing the process? Ctrl+C ? |
For my initial testing, I was clicking 'End Process' in Task Manager. Based on your question, I'll see if other termination signals result in a properly emitted error! Or not... taskkill /im 7za.exe
ERROR: The process "7za.exe" with PID 51192 could not be terminated.
Reason: This process can only be terminated forcefully (with /F option) |
Can you help me understand why This is what I see after successfully extracting one file:
This is what I see when extracting another file:
Why are |
So, the above behavior is not specific to a particular archive. It appears to be a timing issue, as the same archive file will contain proper |
Thanks for the thumbs-up on the previous comment, but can you please provide any input on anything reported? Related to this issue, is there any method currently available for either of the following?
I'm attempting to use this package for a project that will be extracting very large archives and want to allow users to cancel, if necessary. EDIT: After posting this, I realized I can likely use |
I will work on that in the next few weeks (no access to a computer for now) |
Using commit e961ac4, the original issue still exists. No Additionally, the Support for an |
Currently, if the spawned 7-zip process is killed before extraction is complete, the 'end' event is emitted and no errors are shown. Since the extraction actually failed in this case, an 'error' event should be emitted instead.
If there's some technical reason this shouldn't be fixed, please update documentation to suggest that people implement their own error handling for this corner-case. Something like:
The text was updated successfully, but these errors were encountered: