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 251776

Summary: Prefer module's properties in case of clash in names with JS Platform
Product: javascript Reporter: Vladimir Riha <vriha>
Component: Node.jsAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: sample project

Description Vladimir Riha 2015-04-12 13:22:18 UTC
Created attachment 153141 [details]
sample project

Please check the attached project and:
 - open src/ext/day/note/controller.js
 - type on line 7:
     dbProvider.
 => opened code completion does contain create() method but it is marked as "JS Platform" and as method coming from the required module. The problem is probably due to clash of names. It would be nice if code completion would prefer module's methods/properties over the general ones in list of suggestions. 


Thank you



Product Version: NetBeans IDE Dev (Build 201504110001)
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: Linux version 3.13.0-45-generic running on amd64; UTF-8; en_US (nb)