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 232027 - False variable unused hint
Summary: False variable unused hint
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 11:45 UTC by Vladimir Riha
Modified: 2013-07-19 14:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (66.08 KB, text/x-log)
2013-06-29 11:53 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-06-29 11:45:28 UTC
Please try this:

index.html:
<div ng-controller="Controller">
    <input type="button" value="set" ng-click="myVar = 'my-class'">{{myVar}}
    <input type="button" value="clear" ng-click="myVar = ''">
</div>


file.js:
function Controller($scope) {
    $scope.counter = 0;
    $scope.myVar = 1;
    $scope.change = function() {
        $scope.counter++;
        $scope.myVar = 2;
    };
}



Now in index.html, there is a false hint that myVar is unused



Product Version: NetBeans IDE Dev (Build 201306272300)
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-06-29 11:53:07 UTC
Created attachment 136491 [details]
IDE log
Comment 2 Petr Pisl 2013-07-15 17:05:17 UTC
Fixed in web-main:
http://hg.netbeans.org/web-main/rev/80a4a3da9d2d
Comment 3 Quality Engineering 2013-07-16 02:37:34 UTC
Integrated into 'main-silver', will be available in build *201307152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/80a4a3da9d2d
User: Petr Pisl <ppisl@netbeans.org>
Log: #232027 - False variable unused hint
Comment 4 Vladimir Riha 2013-07-19 14:42:40 UTC
Thank you, verified

Product Version: NetBeans IDE Dev (Build 201307182300)
Updates: Updates available
Java: 1.7.0_40-ea; Java HotSpot(TM) Client VM 24.0-b52
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b33
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)