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 248361 - Code completion does not offer items from child controller
Summary: Code completion does not offer items from child controller
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2014-11-03 12:06 UTC by Vladimir Riha
Modified: 2014-11-06 15:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (133.79 KB, text/plain)
2014-11-03 12:06 UTC, Vladimir Riha
Details
sample project (2.22 KB, application/zip)
2014-11-03 12:07 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-11-03 12:06:30 UTC
Created attachment 150229 [details]
IDE log

Please check the attached project and :
 - open index.html
 - place cursor to line 30, column 51

<div ng-click="print()" ng-model="^"></div>

 - invoke cc

=> "page" is not offered (it is declared in Ctrl in file.js). Used to work in 8.0.1.

Thank you



Product Version: NetBeans IDE Dev (Build 201411030002)
Updates: Updates available
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)
Comment 1 Vladimir Riha 2014-11-03 12:07:21 UTC
Created attachment 150230 [details]
sample project
Comment 2 Roman Svitanic 2014-11-06 15:28:57 UTC
Issue can be reproduced in plain JavaScript editor:

function Ctrl1($scope) {
    $scope.prop1 = 'text1';
}
function Ctrl2($scope) {
    $scope.prop2 = 'text2';
}

(function () {
    var $scope = Ctrl1.$scope;
    with ($scope) {
        (function () {
            var $scope = Ctrl2.$scope;
            with ($scope) {
                prop| // invoke CC instead of "|"
            }
        });
    }
});

on line with "prop|" after invoking the CC, "prop2" should be offered as well.