Community
Participate
Working Groups
The contract on platform build says that the operation can throw CoreException or OperationCancelledException. If the build does either of these, the launch terminates early. The build may also cause the passed in monitor to be cancelled which seems to cause the overall launch to be cancelled. We should treat build-run failures the same as build errors in the project, and allow the user to continue the launch.
Created attachment 188154 [details] patch 1 Fix for the issue. Catch exceptions from the build, and set a flag indicating that the build failed. Add a new BuildProgressMonitor type which shields the parent progressmonitor from cancellation reported by the builder. NB user-initiated top-level cancellation still works, as BuildProgressMonitor #isCanceled delegates to the parent progress monitor. This fix only prevents build errors and build initiated cancellation from preventing launch.
Fixed in HEAD.
*** cdt cvs genie on behalf of jblackburn *** Bug 336052 - AbstractCLaunchDelegate{2} fails to launch if the Build throws Exception or build cancels the progressmonitor. [*] LaunchUtils.java 1.13 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/LaunchUtils.java?root=Tools_Project&r1=1.12&r2=1.13 [*] AbstractCLaunchDelegate2.java 1.12 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate2.java?root=Tools_Project&r1=1.11&r2=1.12 [*] AbstractCLaunchDelegate.java 1.76 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java?root=Tools_Project&r1=1.75&r2=1.76