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 250899

Summary: Incomplete CC in with statement
Product: javascript Reporter: Roman Svitanic <rsvitanic>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: All   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=246444
Issue Type: DEFECT Exception Reporter:

Description Roman Svitanic 2015-03-04 15:29:07 UTC
Suppose the following function in demo.js file:
(function () {
    angular.controller('Demo', [function ($scope) {
            $scope.sample = 'Hello!';
        }]);
})();

Then virtual source generated for Angular CC will be something like:
(function () {
    var $scope = demo_L1.demo_L2.$scope;
    with ($scope) {
        |
    }
});

Try to invoke the CC in regular JS editor instead of "|". Expected result is that "sample" is offered. In actual result "sample" is missing.
This affects bug #246444.