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 240995 - No IDE Options set properly on 1st open
Summary: No IDE Options set properly on 1st open
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2014-01-27 07:24 UTC by Tomas Mysik
Modified: 2014-01-28 09:31 UTC (History)
1 user (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 Tomas Mysik 2014-01-27 07:24:24 UTC
After your recent changes, I have found another serious issue. I guess this issue applies for _all_ IDE Options, not only the PHP ones.

Steps:
- have a clean userdir
- start IDE, open IDE Options > PHP > Frameworks & Tools > Composer
- (at least some fields should be prefilled by default - Vendor & Author ones but they are empty)
- fill e.g. "aaa" into Vendor field
- OK
- restart IDE
- open IDE Options > PHP > Frameworks & Tools > Composer

-> field Vendor is empty but it should not be (the value is properly stored in the property file in userdir)

The cause is in the update() method, you are setting the values to the UI only if they are not changed - this is incorrect for the first opening (saved value is different than the displayed one, of course).

Thanks.

Product Version: NetBeans IDE Dev (Build 20140127-718415a60def)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Linux version 3.11.0-15-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Tomas Mysik 2014-01-27 07:27:21 UTC
One note - I forgot that I am currently improving Composer Options (changing all error messages to warnings) so you will not be able to save it with only Vendor value. Simply choose another panel, e.g. PHPUnit one.

Thanks.
Comment 2 Tomas Mysik 2014-01-27 07:31:39 UTC
BTW if one closes IDE Options and opens them again (without restarting IDE), the values are in the UI set properly.
Comment 3 Theofanis Oikonomou 2014-01-27 17:17:19 UTC
Changeset: b72bf9a105ac
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-01-27 18:18
Message:
Comment 4 Theofanis Oikonomou 2014-01-27 17:19:32 UTC
(In reply to Tomas Mysik from comment #0)
> 
> The cause is in the update() method, you are setting the values to the UI
> only if they are not changed - this is incorrect for the first opening
> (saved value is different than the displayed one, of course).
> 

This is the root problem. Thank you for catching this and for the evaluation. I believe that now even during the first opening of every panel under Frameworks & Tools the saved values, if any, are loaded successfully.
Comment 5 Quality Engineering 2014-01-28 03:05:57 UTC
Integrated into 'main-silver', will be available in build *201401280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b72bf9a105ac
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #240995 - No IDE Options set properly on 1st open
Comment 6 Tomas Mysik 2014-01-28 09:31:08 UTC
Verified.

Product Version: NetBeans IDE Dev (Build 20140128-f7fce9a9e53a)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Linux version 3.11.0-15-generic running on amd64; UTF-8; cs_CZ (nb)