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.
i have javase project. i have default, and SOAP configurations. with SOAP configuration it does not correctly use the java arguments field - uses the default, and also with SOAP config selected and select run project - it runs the default config - not the SOAP config - which is a different main class.
Can you please provide project.properties file and content of 'configs' folder? (both located in nbproject folder in your project dir)
Created attachment 145726 [details] project.properties
Created attachment 145727 [details] configs/ file - SOAP.properties
I just reproduced again - easily. create simple java j2se project. configure a <default config> project config with main class A, and arguments A. configure a second project config with main class B, and arguments B. When you click on 'down arrow' / 'step into' / F7 with either config selected, you always step-into the same class with same arguments. It like it does not know there is more that 1 config. There are 2 configs but only 1 config in the configs folder. -Gary Product Version: NetBeans IDE 8.0 RC1 (Build 201402242200) Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\gbello\AppData\Roaming\NetBeans\8.0rc1 Cache directory: C:\Users\gbello\AppData\Local\NetBeans\Cache\8.0rc1
The described scenario works fine from me. From the provided files I see that the main classes are in both case the same. The arguments are stored in private folder. Can you please attache it here?
I've tested the problem according to description and works fine for me. Please can you attach Ant verbose output for both Step Ins. Thanks a lot!
You can enable the Ant debug output in Tools/Options/Java/Ant/Verbosity Level.
i am attaching 5 files, a zip of the entire nbproject folder, and 4 JPG files showing the setup of of each of the configs and the result of debug step into invoked using each config.
Created attachment 145754 [details] nbrpoject folder zip file
Created attachment 145755 [details] default config setup
Created attachment 145756 [details] soap config setup
Created attachment 145757 [details] default config step into
Created attachment 145758 [details] soap config step into
each config has a different main class - yet the same main class is invoked for both step into.
Created attachment 145759 [details] ant log
Created attachment 145760 [details] soap config ant log
Created attachment 145761 [details] default config ant log
Caused by not save config.properties. I think that the PP.cachedPropertiesFromFile has to be set to properties after save. I am attaching patch but I am not sure how it affects new lines, so the original issue has to be tested with the patch. But I think it should be OK.
Created attachment 145781 [details] Possible fix Possible fix.
Tomasi, it's too late for 8.0 . I propose to test a patch deeply and release as a part of patch release for 8.0 .
Mariane I've attached a possible fix. The fix needs to be verified by Martin as I don't remember the original issue (som e new lines problem). If OK I believe it deserves to be a part of NB 8.0 as the problem is much bigger (random property files are not saved).
Tomasi your patch works fine for me.
So I vote for integrating it into release80. Martine can you do it? Or should I do it? I am on meeting just now. I believe the patch is safe.
the patch looks ok to me.
Fixed jet-main c89603e799ef
Transplanted into release80 http://hg.netbeans.org/releases/rev/b2429dbb1ff8
Integrated into 'releases/release80', will be available in build *201403052200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/b2429dbb1ff8 User: Tomas Zezula <tzezula@netbeans.org> Log: #242468:javase project configurations not properly honored.
Integrated into 'main-silver', will be available in build *201403120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c89603e799ef User: Tomas Zezula <tzezula@netbeans.org> Log: #242468:javase project configurations not properly honored.