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 234523 - Tools|Options|Editor|Formatting - Language dropdown has garbage values
Summary: Tools|Options|Editor|Formatting - Language dropdown has garbage values
Status: VERIFIED INCOMPLETE
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 236322 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-17 02:51 UTC by jmhertlein
Modified: 2013-10-26 10:22 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
State of the options dialog after step 5 (56.89 KB, image/png)
2013-08-17 02:51 UTC, jmhertlein
Details
Log file with NullPointerException (49.15 KB, text/x-log)
2013-09-18 05:44 UTC, StChamond
Details
Log file with NPE (50.10 KB, text/x-log)
2013-10-12 17:40 UTC, Purejava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jmhertlein 2013-08-17 02:51:41 UTC
Created attachment 138812 [details]
State of the options dialog after step 5

Reproduction steps:

1. Start IDE
2. Open any Java SE maven project
3. Develop a desire to change your editor formatting settings
4. Navigate to Tools | Options | Editor
5. Click the Formatting tab

Both the Languages and Category combo boxes contain only the elements "Item 1", "Item 2", "Item 3", "Item 4". Trying to select them just causes the dropdown menu to close after a couple clicks. I've attached a screenshot of what this looks like. 

If we continue, things continue to behave strangely:

6. Click the "Hints" tab. It is completely empty, save for the word "Hints" on the left side of the tab's contents. Same thing for the "Highlighting" tab.
7. Click OK to close.
8. Navigate back to Tools | Options | Editor -> Formatting tab
8a. You won't be able to- clicking Tools | Options no longer brings up the options dialog. 

Not one to give up in the face of bugs, I tried further weird things:

9. Close and restart IDE.
10. Open Tools | Options | Editor -> Formatting tab. It's still bugged.
11. Instead of hitting OK here, switch to the "Java" section (next to "Keymap")
12. Click OK.
13. Open Tools | Options | Editor -> Formatting tab. Nothing happens when you click Editor, though it appears to become selected. Click back to the Java section, then back to Editor. This time it shows the Editor tabs.
14. Click the Formatting tab.

Now the language combobox is empty, instead of holding the generic "Item N" values. "Category" still has the same values as after step 5.

I'm using Arch Linux's netbeans package out of the default community repo (community/netbeans 7.3.1-3).

Neither deleting ~/.netbeans nor deleting ~/.cache/netbeans fixes this. I tried using a nightly build of netbeans from the Arch User Repository, and did NOT experience this issue there. I can reproduce my bug on both my laptop and desktop (both are Arch using the netbeans package I mentioned above).

Is there anything I can do to work around this bug in the meantime, or should I just use nightly builds until it's fixed in the default package?
Comment 1 Milutin Kristofic 2013-08-19 14:36:57 UTC
I tested your steps with netbeans 7.3.1 downloaded from netbeans.org. I created maven SE project, however editor options still works for me. I tried empty userdir and cache since I expected problem with activating modules. I don't have same environment, I use ubuntu and sun jdk.

You can send me your log file, maybe there is some hint where is the problem. If there is no problem in night build, you can try 7.4 beta. Netbeans 7.4 should be released in couple of weeks. It is first report about this issue, I don't know how can this happens. I don't know if netbeans package is modified from original netbeans installer.
Comment 2 StChamond 2013-09-18 05:44:23 UTC
Created attachment 140194 [details]
Log file with NullPointerException
Comment 3 StChamond 2013-09-18 05:54:14 UTC
Reproduced on environment
Product Version: NetBeans IDE 7.3.1 (Build 201306052037)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Linux version 3.10.11-200.fc19.x86_64 running on amd64; UTF-8; en_US (nb)

After downgrading Java 1.7.0_40 to Java 1.7.0_25 formatting dialog works fine.
After reinstalling 1.7.0_40 the bug is here again.

Attached log file.
Comment 4 pablo2061 2013-09-19 07:29:28 UTC
Hello,

I had exactly the same issue on netbeans 7.3/7.3.1 which I've flagged as a bug, issue didn't exist on 7.2.1. As I needed to use Java EE 7, I switched to 7.4 beta which is working fine and doesn't exhibit the same issue.

Not a fix I know but a means to an end.
Comment 5 Jiri Prox 2013-09-27 09:24:00 UTC
*** Bug 236322 has been marked as a duplicate of this bug. ***
Comment 6 appercel 2013-10-02 11:29:58 UTC
Can reproduce on NetBeans 7.3.1 with JDK 1.7.0_40.
Cannot reproduce on NetBeans 7.3.1 with JDK 1.7.0_25.
Comment 7 Purejava 2013-10-12 17:39:01 UTC
Can also reproduce this on:
Product Version         = NetBeans IDE 7.3.1 (Build 201306052037) (#f255eab72f59)
Operating System        = Linux version 3.11.4-1-ARCH running on i386
Java; VM; Vendor        = 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56; Oracle Corporation

Steps to reproduce:
a) Install NetBeans from Arch repository
b) Start NetBeans and create a new Java Project: New Project > Java > Java Application
c) Open Options: Tools > Options and hit the Editor category
d) Pressing the Formatting tab leads to a NPE
Comment 8 Purejava 2013-10-12 17:40:23 UTC
Created attachment 141032 [details]
Log file with NPE
Comment 9 hson 2013-10-26 10:22:57 UTC
I've had the same problem on Windows and upgrading the JDK to 1.7.0_45 seems to resolve the issue