-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Generic handling of failure to start a process #7795
Comments
RussKie
added a commit
to RussKie/gitextensions
that referenced
this issue
Dec 6, 2020
Trap and route as many exceptions as possible to the central handler. For exceptions coming from the main thread it is possible to ignore those and continue the app's execution, but for unhandled exceptions coming from background threads the app will terminate. The main focus of this work is to intercept exceptions originated from `Executable` (i.e. executing git commands, etc.), and user scripts. However it is not limited in this scope. Resolves gitextensions#7795
RussKie
added a commit
to RussKie/gitextensions
that referenced
this issue
Dec 6, 2020
Trap and route as many exceptions as possible to the central handler. For exceptions coming from the main thread it is possible to ignore those and continue the app's execution, but for unhandled exceptions coming from background threads the app will terminate. The main focus of this work is to intercept exceptions originated from `Executable` (i.e. executing git commands, etc.), and user scripts. However it is not limited in this scope. Resolves gitextensions#7795
RussKie
added a commit
to RussKie/gitextensions
that referenced
this issue
Dec 15, 2020
Trap and route as many exceptions as possible to the central handler. For exceptions coming from the main thread it is possible to ignore those and continue the app's execution, but for unhandled exceptions coming from background threads the app will terminate. The main focus of this work is to intercept exceptions originated from `Executable` (i.e. executing git commands, etc.), and user scripts. However it is not limited in this scope. Resolves gitextensions#7795
gerhardol
pushed a commit
to gerhardol/gitextensions
that referenced
this issue
Dec 26, 2020
Trap and route as many exceptions as possible to the central handler. For exceptions coming from the main thread it is possible to ignore those and continue the app's execution, but for unhandled exceptions coming from background threads the app will terminate. The main focus of this work is to intercept exceptions originated from `Executable` (i.e. executing git commands, etc.), and user scripts. However it is not limited in this scope. Resolves gitextensions#7795
RussKie
added a commit
to RussKie/gitextensions
that referenced
this issue
Dec 28, 2020
Trap and route as many exceptions as possible to the central handler. For exceptions coming from the main thread it is possible to ignore those and continue the app's execution, but for unhandled exceptions coming from background threads the app will terminate. The main focus of this work is to intercept exceptions originated from `Executable` (i.e. executing git commands, etc.), and user scripts. However it is not limited in this scope. Resolves gitextensions#7795
RussKie
added a commit
to RussKie/gitextensions
that referenced
this issue
Jan 2, 2021
Trap and route as many exceptions as possible to the central handler. For exceptions coming from the main thread it is possible to ignore those and continue the app's execution, but for unhandled exceptions coming from background threads the app will terminate. The main focus of this work is to intercept exceptions originated from `Executable` (i.e. executing git commands, etc.), and user scripts. However it is not limited in this scope. Resolves gitextensions#7795
RussKie
added a commit
to RussKie/gitextensions
that referenced
this issue
Jan 2, 2021
Trap and route as many exceptions as possible to the central handler. For exceptions coming from the main thread it is possible to ignore those and continue the app's execution, but for unhandled exceptions coming from background threads the app will terminate. The main focus of this work is to intercept exceptions originated from `Executable` (i.e. executing git commands, etc.), and user scripts. However it is not limited in this scope. Contributes to gitextensions#7795 Co-authored-by: Michael Seibt <mstv@users.noreply.github.com>
This was referenced Jan 5, 2021
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behaviour
#7714 wraps
Process.Start
intry { } catch (Exception ex) { MessageBox.Show() }
.Expected behaviour
We should replace all instances of
Process
with a generic wrapper -- at least all calls toProcess.Start
, e.g. withGitCommands.Executable.ProcessWrapper
, which also needs generic error handling: #7574 (comment).Related to #6527.
Abstraction for
MessageBox.Show
should be used: #7751 (comment).The text was updated successfully, but these errors were encountered: