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 247329 - Editor not completing braces for require function
Summary: Editor not completing braces for require function
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-20 15:28 UTC by Vladimir Riha
Modified: 2014-09-26 12:10 UTC (History)
0 users

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-09-20 15:28:09 UTC
I have a project with NodeJS enabled and JS file starts with


var application = require("../server");
var errorRespond = requir


if I invoke cc after the incomplete require on the 2nd line, editor offers 2 requires: require and require() - both coming from NodeJS. If I select the function and complete it, result is
var errorRespond = require

so braces are not completed.


Thanks


Product Version: NetBeans IDE Dev (Build 201409200001)
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-35-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2014-09-22 12:27:10 UTC
Fixed in web-main.
Comment 2 Quality Engineering 2014-09-24 12:51:01 UTC
Integrated into 'main-silver', will be available in build *201409241121* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7fa3993821ec
User: Petr Pisl <ppisl@netbeans.org>
Log: #247329 - Editor not completing braces for require function
Comment 3 Vladimir Riha 2014-09-26 12:10:40 UTC
Thank you, verified

Product Version: NetBeans IDE Dev (Build 201409260001)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)