Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323953

Summary: External Tools Launch delegate no longer supports launch in background
Product: [Eclipse Project] Platform Reporter: James Blackburn <jamesblackburn+eclipse>
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, darin.eclipse, Michael_Rennie, patrik.andren, remy.suen
Version: 3.6Flags: daniel_megert: pmc_approved+
Michael_Rennie: review+
Target Milestone: 3.6.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch 1
none
patch for 3.7 none

Description James Blackburn CLA 2010-08-30 07:07:56 EDT
Created attachment 177718 [details]
patch 1

The external tools launch delegate: ProgramLaunchDelegate#launch spins waiting until the underlying program has exited.
This is different to other launch delegates, which are expected to return immediately having launched the launch configuration.

As a result calls to ILaunchConfiguration#lanch doesn't return in a timely manner, only returning when the launch has been completed.

Simple patch attached.
Comment 1 Michael Rennie CLA 2010-08-30 10:44:58 EDT
Thanks for the patch James, I am curious though why that code was ever commented out. 

Prior to the fix for bug 264338 there was an if-then that used to honour the launch-in-background settings, and one of the patches commented it all out. Maybe Darin W can shed some light on what he was thinking at the time.
Comment 2 Darin Wright CLA 2010-08-30 11:33:28 EDT
Looks like this just fell through the cracks during the 3.6 refactoring to make external tool launching headless. It should be fixed, and is a regrression.
Comment 3 Darin Wright CLA 2010-08-30 11:42:12 EDT
Marking as 3.6.1 candidate.
Comment 4 Darin Wright CLA 2010-08-30 16:29:15 EDT
Created attachment 177782 [details]
patch for 3.7
Comment 5 Darin Wright CLA 2010-08-30 16:29:44 EDT
*** Bug 321096 has been marked as a duplicate of this bug. ***
Comment 6 Darin Wright CLA 2010-08-30 16:31:41 EDT
Released to 3.7 (HEAD).
Comment 7 Darin Wright CLA 2010-08-30 16:38:20 EDT
Adding Dani for 3.6.1 PMC approval in RC3. (note, patch works for both 3.7 and
3.6.1). Adding Michael for review.
Comment 8 Dani Megert CLA 2010-08-31 06:05:35 EDT
(In reply to comment #2)
> Looks like this just fell through the cracks during the 3.6 refactoring to make
> external tool launching headless. It should be fixed, and is a regrression.
Agree.

Verified the fix and the behavior. +1 for 3.6.1 RC3.

Don't forget to update the bundle version to 1.0.1.
Comment 9 Darin Wright CLA 2010-08-31 09:48:42 EDT
Released to 3.6.1. Updated bundle version to 1.0.1.
Comment 10 Michael Rennie CLA 2010-08-31 10:28:29 EDT
+1 verified
Comment 11 Darin Wright CLA 2010-09-02 09:26:14 EDT
Verified in M20100901-1310