Bug 538254 - Selected launch configuration changes when working with prototype launches
Summary: Selected launch configuration changes when working with prototype launches
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.8   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-24 10:32 EDT by David Glodich CLA
Modified: 2022-12-28 12:15 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Glodich CLA 2018-08-24 10:32:41 EDT
When making changes to launch configurations that are linked to a prototype, sometimes the selected launch configuration changes unexpectedly and I wind up making changes to another launch or prototype.

I have been unable to identify specific steps for all instances this has happened for me, but I have identified the following 2 scenarios.

Scenario where selection changes to the prototype configuration:
* create a prototype configuration with a linked launch configuration (I reproduced using both "Java Application" and "Eclipse Application" launches)
* launch the launch configuration to get it listed in the "Run/Debug Configurations" toolbar menu
* Ctrl-click on the launch configuration from one of the "Run/Debug Configurations" toolbar menus

If you watch carefully, you will see the Run/Debug Configurations dialog opens with the correct launch configuration select, but then quick switches to the prototype configuration.

Scenario where selection changes to another launch configuration:
* create a Java Application launch configuration with a name starting with an "M" (or other character after "N" - this is related to the default launch name of "New_configuration")
* create a new Java Application prototype and specify a name, project, and main class
* switch to the "Prototype" tab and click "Apply"
* right-click on the new prototype in the tree, and select "New Configuration"
* select the "Link..." button and select your new prototype (without changing anything else in the prototype)
* click the "Apply" button

This time, the selection changes to the launch configuration immediately following the location of the "linked" launch configuration before it was linked.
Comment 1 Sarika Sinha CLA 2018-08-25 07:54:21 EDT
I can reproduce this.

@Axel,
Can you look into this?
Comment 2 Sarika Sinha CLA 2018-11-21 05:03:37 EST
@Axel,
can you look at it for 4.11?
Comment 3 Axel RICHARD CLA 2018-11-21 09:53:11 EST
(In reply to Sarika Sinha from comment #2)
> @Axel,
> can you look at it for 4.11?

Hello Sarika,

I will do a first analysis in the next days in order to estimate the required effort to fix the problem.

Best regards,
Comment 4 Axel RICHARD CLA 2019-01-09 02:59:32 EST
(In reply to Sarika Sinha from comment #2)
> @Axel,
> can you look at it for 4.11?

Hello Sarika,

I'm really sorry, but unfortunately I had no time to estimate the required effort to fix these problems and I won't have time before 4.11 release.

Could you check on your side please ? Or could it wait ?

Best regards,
Comment 5 Sarika Sinha CLA 2019-01-09 03:26:26 EST
(In reply to Axel RICHARD from comment #4)
> Hello Sarika,
> 
> I'm really sorry, but unfortunately I had no time to estimate the required
> effort to fix these problems and I won't have time before 4.11 release.
> 
> Could you check on your side please ? Or could it wait ?
> 
> Best regards,

I don't think I will have the time, so you can look at it in 4.12 timeframe.
Comment 6 Eclipse Genie CLA 2020-12-30 12:44:29 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Sarika Sinha CLA 2020-12-30 23:08:37 EST
@Axel,
Will you have time to look into this in 4.19?
Comment 8 Eclipse Genie CLA 2022-12-28 12:15:48 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.