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 159060

Summary: Invalid "missing ) after argument list" warning
Product: javascript Reporter: stefpet <stefpet>
Component: EditorAssignee: Marek Fukala <mfukala>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://www.stpe.se/wp-content/uploads/2009/02/netbeans-invalid-js-warning.png
Issue Type: DEFECT Exception Reporter:

Description stefpet 2009-02-24 14:10:39 UTC
Error reproduced on following system:
 Product Version: NetBeans IDE 6.5 (Build 200811100001)
 Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
 System: Windows XP version 5.1 running on x86; Cp1252; sv_SE (nb)
 Userdir: C:\Documents and Settings\stpe\.netbeans\6.5

When writing JavaScript code the warning "missing ) after argument list" is displayed incorrectly. By triggering a
re-evaluation of the file (by inserting a space somewhere) it goes away.

Steps to reproduce:

Open an empty file named test.js (for example).

Write the following code:

function foo() {
    new Hello(bar, baz);
}

All should be fine. Now remove the space, or insert an additional space, between to two variables. Any change at that
position seem to trigger the error:

function foo() {
    new Hello(bar,baz);
}

Note "missing ) after argument list" warning. The warning will go away once the file is "re-evaluated" (i.e. simply
enter any character (like a space) anywhere in the file.

Doing exactly the same but outside a function will not trigger the error.

Please see screenshot linked to in the URL field for visual explanation.
Comment 1 stefpet 2009-02-27 07:38:01 UTC
I'm not able to reproduce this issue in 6.7 M2 (Build 200902231810).
Comment 2 Martin Schovanek 2009-02-27 10:41:19 UTC
Already fixed in trunk builds.