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 225709 - Doubled items in main View menu after HTML/JavaScript activation
Summary: Doubled items in main View menu after HTML/JavaScript activation
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 7.3
Hardware: PC Linux
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 15:40 UTC by Vladimir Riha
Modified: 2014-07-30 11:13 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (120.01 KB, image/png)
2013-02-04 15:40 UTC, Vladimir Riha
Details
IDE log with -J-Dorg.netbeans.modules.ide.ergonomics.level=FINE (44.28 KB, text/x-log)
2013-02-05 07:34 UTC, Vladimir Riha
Details
IDE log with -J-Dorg.openide.loaders.FolderInstance.Menu.View.level=FINE (57.67 KB, text/x-log)
2013-07-17 15:07 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-02-04 15:40:30 UTC
Created attachment 131007 [details]
screenshot

Please check the screenshot. To reproduce:

- start IDE with new userdir with ergonomics
- invoke New Project wizard,  select HTML/JavaScript
- when it is activated, cancel the wizard (happens also with opening HTML/JS project instead of using New Project wizard...)

now main menu View contains some items twice and its top border looks weird as well. After restarting IDE, the problem goes away. 

I reproduced it in last 5 attempts. I also tried View|Toolbars and checked some option and the second View|Toolbar did not reflect the change). 

I didn't reproduce it on Windows7. 





Product Version: NetBeans IDE 7.3 RC2 (Build 201302032200)
Java: 1.7.0_13; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20

and also JDK7u11

System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-02-05 07:34:48 UTC
Created attachment 131030 [details]
IDE log with -J-Dorg.netbeans.modules.ide.ergonomics.level=FINE
Comment 2 Jaroslav Tulach 2013-02-06 10:57:02 UTC
Works for me on 

Product Version: NetBeans IDE Dev (Build 20130206-b7b62cba2b0b)
Java: 1.6.0_38; Java HotSpot(TM) Client VM 20.13-b02
Runtime: Java(TM) SE Runtime Environment 1.6.0_38-b05
System: Linux version 3.5.0-22-generic running on i386; UTF-8; en_US (nb)
Comment 3 Jaroslav Tulach 2013-02-06 10:59:32 UTC
Works also on:

Product Version: NetBeans IDE Dev (Build 20130206-b7b62cba2b0b)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_07-b10
System: Linux version 3.5.0-22-generic running on i386; UTF-8; en_US (nb)

Btw. what makes you believe this is a P2 problem?
Comment 4 Vladimir Riha 2013-02-06 11:21:40 UTC
It's regression, highly visible and makes main menu View imo confusing (considering the fact that as mentioned above, changes made via one Toolbars submenu are not reflected in the other Toolbars). I don't think this is P4, P3 at least


If you need some logging, please let me know.

Reproduced on


Product Version: NetBeans IDE Dev (Build 201302050917)
Updates: Updates available
Java: 1.7.0_13; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Jaroslav Tulach 2013-07-17 14:40:00 UTC
Run with 
-J-Dorg.openide.loaders.FolderInstance.Menu.View.level=FINE
to generate more info. But I've just reproduced the problem with the logging on.

Anyway this is a general issue with AWTTask.
Comment 6 Vladimir Riha 2013-07-17 15:07:35 UTC
Created attachment 137328 [details]
IDE log with -J-Dorg.openide.loaders.FolderInstance.Menu.View.level=FINE
Comment 7 Jaroslav Tulach 2013-07-17 15:26:09 UTC
ergonomics#aa6e69391e33
Comment 8 Quality Engineering 2013-07-20 02:10:58 UTC
Integrated into 'main-silver', will be available in build *201307192300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/671abca14635
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #225709: Call removeAll() just before new items are added to eliminate issues with recurrent calls
Comment 9 Vladimir Riha 2013-07-30 06:40:31 UTC
I'm sorry, but still reproducible. I started IDE, activated HTML5 and then opened PHP project (which activated PHP) and again, View menu contains duplicates.


Product Version: NetBeans IDE Dev (Build 201307292300)
Java: 1.7.0_40-ea; Java HotSpot(TM) Client VM 24.0-b52
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b33
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 10 Jaroslav Tulach 2014-07-30 11:13:58 UTC
Worked for me in last three attempts:

$ java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

And I'd like to pretend this is not a priority issue at all.