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 250993 - Core modules code completion does not work
Summary: Core modules code completion does not work
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Node.js (show other bugs)
Version: 8.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-07 15:38 UTC by Vladimir Riha
Modified: 2015-03-30 20:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (72.44 KB, text/plain)
2015-03-07 15:38 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-03-07 15:38:34 UTC
Created attachment 152465 [details]
IDE log

Please try following:
 - create a new HTML5 sample project "Angular Messages"
 - open Sources/server/server.js
 - on last line 96, type 

path.

 => opened code completion shows methods of path module, that's ok, undo this changes
 - add either
     module.exports = {};
   or 
     exports.test = {};

   to line 96 and repeat the code completion on line 97
 => code completion does not contain anything from path module, colors of all top level variables will change

So basically code completion for NodeJS modules works only if the JS file is missing both "module.exports" and "exports.something".


Thank you


Product Version: NetBeans IDE Dev (Build 201503060001)
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)
Comment 1 Petr Pisl 2015-03-24 14:33:46 UTC
This is probably regression. It worked, when I have implemented this.
Comment 2 Petr Pisl 2015-03-26 14:05:18 UTC
Fixed in web-main.
Comment 3 Quality Engineering 2015-03-27 03:22:40 UTC
Integrated into 'main-silver', will be available in build *201503270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f2e19a1bed5e
User: Petr Pisl <ppisl@netbeans.org>
Log: #250993 - Core modules code completion does not work
Comment 4 Vladimir Riha 2015-03-30 20:24:09 UTC
Thank you, works fine now

Product Version: NetBeans IDE Dev (Build 201503300001)
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)