This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 214508 - The project properties dialog does not switch configuration
Summary: The project properties dialog does not switch configuration
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Java Webstart (show other bugs)
Version: 7.2
Hardware: PC Linux
: P1 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-06-20 12:45 UTC by gholmer
Modified: 2012-06-26 15:35 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gholmer 2012-06-20 12:45:39 UTC
steps to reproduce:
1) Open a J2SE project with several saved configurations.
2) Right-click project, select Properties, go to Run category. 
3) In Configuration dropdown, select a saved configuration.
4) When project is debugged, default configuration is used.
Comment 1 Tomas Zezula 2012-06-20 12:51:12 UTC
* New J2SEProject
* Default configuration arguments: "default"
* New configuration "a" arguments: "a"
Run project in default cfg args is "default"
Run project in "a" cfg args is "a"
The same for debug project.
Comment 2 gholmer 2012-06-20 13:00:01 UTC
Could it be the number of configurations? This is a utility project with many main classes, and has 29 files in nbproject/configs.
Comment 3 Stepan Zebra 2012-06-20 13:03:26 UTC
(In reply to comment #1)
> * New J2SEProject
> * Default configuration arguments: "default"
> * New configuration "a" arguments: "a"
> Run project in default cfg args is "default"
> Run project in "a" cfg args is "a"
> The same for debug project.

How do you switch between the configurations? It is possible to switch them
successfully in the toolbar.
The problem here is that Run Configuration is always reset to <default
configuration>, when Project Properties are invoked and updated by pushing OK.
Affects both SE and FX project. Might have something to do with recent
patching...
Comment 4 gholmer 2012-06-20 13:11:38 UTC
Yes, it works when using the dropdown in the toolbar. I'm only seeing the issue when using the project properties dialog.
Comment 5 Tomas Zezula 2012-06-20 13:20:01 UTC
Definitely no P1 (maybe not even P2), easy workaround switch the configuration in the config combo.
Comment 6 Stepan Zebra 2012-06-20 16:42:51 UTC
It's a regression caused by fix of issue 208112.
Yes, there is a workaround to use desired configuration, but the main impact is that the active configuration is being reset to default every time Properties are edited. It's also easy to overlook that this is happening and then it might look like that the Run Configurations doesn't work at all.
I believe it should be fixed for 7.2.
Comment 7 Tomas Zezula 2012-06-20 16:57:31 UTC
The switch of configuration is quite visible in the combo box.
But If you want I can fix it to NB 7.2 even I think there are plenty of more important issues.
Comment 8 gholmer 2012-06-20 18:07:06 UTC
My concern is that a user might not realize he's using the default configuration and run the program anyway (maybe e.g. one configuration has test parameters and one has production).
Comment 9 Tomas Zezula 2012-06-21 07:49:52 UTC
Fixed jet-main a28a3e88be52
Comment 10 Petr Somol 2012-06-21 09:05:58 UTC
the fix looks good to me. please integrate.
Comment 11 Tomas Zezula 2012-06-22 06:25:16 UTC
Transplanted into NB 7.2
releases c3b320c3d820
Comment 12 Quality Engineering 2012-06-23 04:36:42 UTC
Integrated into 'main-golden', will be available in build *201206230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a28a3e88be52
User: Tomas Zezula <tzezula@netbeans.org>
Log: #214508:The project properties dialog does not switch configuration
Comment 13 Quality Engineering 2012-06-24 02:38:53 UTC
Integrated into 'releases', will be available in build *201206232201* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/c3b320c3d820
User: Tomas Zezula <tzezula@netbeans.org>
Log: #214508:The project properties dialog does not switch configuration
Comment 14 Stepan Zebra 2012-06-26 15:35:47 UTC
verified in 7.2 RC