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 216640 - Global variable not listed in Navigator
Summary: Global variable not listed in Navigator
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-08-10 07:39 UTC by Vladimir Riha
Modified: 2012-09-04 06:51 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 2012-08-10 07:39:15 UTC
Variables declared without "var" are not listed in Navigator window. To reproduce, simply create new js file and use one of following snippets:

Snippet A:
function a(){
    myDate = new Date();
}

Snippet B:
    myDate = new Date();



In both cases, "myDate" is not in Navigator window


This worked earlier and navigator is very inaccurate without showing global variables. From my point of view it's important to fix it => P2


Product Version: NetBeans IDE Dev (Build EaselCSS-474-on-20120810)
Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09
System: Linux version 3.0.0-23-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2012-08-31 15:27:21 UTC
Fixed in web-main
http://hg.netbeans.org/web-main/rev/193121148920
Comment 2 Quality Engineering 2012-09-01 01:12:09 UTC
Integrated into 'main-golden', will be available in build *201209010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/193121148920
User: Petr Pisl <ppisl@netbeans.org>
Log: #216640 - Global variable not listed in Navigator
Comment 3 Vladimir Riha 2012-09-04 06:51:36 UTC
thanks a lot

Product Version: NetBeans IDE Dev (Build 201209040001)
Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)