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.
Created attachment 145258 [details] screenshot of the issue On PHP and HTML5 project. 1) Right-click, choose "New .." 2) You will see "Javascript file .." twice Expected: Each option should be shown only once.
NB version/build number ? JDK version ? Steps to reproduce ?
Product Version: NetBeans IDE 8.0 Beta (Build 201401141042) Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69 Runtime: Java(TM) SE Runtime Environment 1.8.0-b129 System: Windows 7 version 6.1 running on amd64; Cp1251; en_US (nb) User directory: C:\Users\_censored_\AppData\Roaming\NetBeans\8.0beta Cache directory: C:\Users\_censored_\AppData\Local\NetBeans\Cache\8.0beta Steps to reproduce: (setup) create and/or open some project HTML5 or PHP project (1) in Projects - right click any HTML5 or PHP project (2) Choose New... (3) Check the context menu: it contains two items named "Javascript file .." (see attached screenshot)
The actual steps to reproduce is to choose 'Other - JavaScript File', then there are two 'JavaScript' items in the New menu. Not sure where this belongs, please feel free to reassign, thanks.
(In reply to Stanislav Aubrecht from comment #3) > Not sure where this belongs, please feel free to reassign, thanks. I guess projects/Generic Infrastructure. Feel free to reassign again. Thank you.
the template path is used to recognize duplicates maybe it would be enought for ClientSideProject.RecommendedAndPrivilegedTemplatesImpl.getPrivilegedTemplates() to return Templates/Other/javascript.js instead of registering Templates/ClientSide/javascript.js which points to the same resource and seems to duplicate Templates/Other/javascript.js reassigning ...
The is a difference between these 2 new JS file wizards - the one from HTML5 category allows to specify source root (Site Root or Unit Tests folder if it is set); the one from Other category does not allow it. That is why this file is displayed twice. The same applies from other templates from HTML5 category. Thanks for reporting.