-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Build hangs when sub-process errors out #78
Comments
I know little about what is going on, but I wonder if the reason it doesn't return due to the pipe being closed is that the pipe never "opened" so it never gets a subsequent close event. It just waits forever for the sub-process to open, even though it failed out right away. |
Good catch. I can see why it's happening, and I can replicate just by removing the MSBuild logger when calling MSBuild (in which case the build finishes and the process exits but the pipe never attached). The tricky thing here is what to do in this case. |
When it does error out, we would like to see the contents of the error message. I believe it's been output to stderr but not being collected by the process runner. We are debating whether to release internally or wait for your release since we are on a tight timeline. In any case, I want to say thanks for this lifesaving tool! |
Turns out this was a little more complicated than I gave it credit for. Pipe synchronization turns out to be pretty challenging. I think I've got it resolved with 2.0.1 though, take it for a spin and let me know if you're still having hangs and we'll re-open the issue. |
The hanging problem is now gone! Thanks! The error message from the inner build is not yet reported. I opened another issue to address that one. Thankfully that one is a quick fix. |
When it sets up the pipe logger and then runs the sub-process, the inner process can fail and then the outer loop sits there waiting in the Read() forever. There should be some sort of error reported if the inner process fails (for example, due to missing required assemblies). Right now no errors are reported and the Build() call just never returns.
The text was updated successfully, but these errors were encountered: