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 248155 - Exported function misresolved as constructor
Summary: Exported function misresolved as constructor
Status: REOPENED
Alias: None
Product: javascript
Classification: Unclassified
Component: Node.js (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-23 20:11 UTC by Vladimir Riha
Modified: 2015-04-26 07:33 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 Vladimir Riha 2014-10-23 20:11:02 UTC
Please try following:

var util = require('util');
util.


and invoke cc. It offers "inspect" which is a function which returns string but cc shows class icon and it is completed w/o braces.

Thank you



Product Version: NetBeans IDE Dev (Build web-main-1441-on-20141022)
Updates: Updates available
Java: 1.7.0_67; Java HotSpot(TM) Client VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2015-04-03 12:12:26 UTC
Should be ok now.
Comment 2 Quality Engineering 2015-04-04 05:15:40 UTC
Integrated into 'main-silver', will be available in build *201504040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0ab619413069
User: Petr Pisl <ppisl@netbeans.org>
Log: #248155 - Exported function misresolved as constructor
Comment 3 Vladimir Riha 2015-04-26 07:33:35 UTC
Thank you, braces are completed OK but it still has class icon in code completion list.

Product Version: NetBeans IDE Dev (Build 201504240001)
Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)