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 239109

Summary: Inner properties of $scope's property not resolved
Product: web Reporter: Vladimir Riha <vriha>
Component: AngularJSAssignee: Petr Pisl <ppisl>
Status: STARTED ---    
Severity: normal CC: Jenselme, ppisl, skomisa
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 241640    
Bug Blocks:    
Attachments: sample project

Description Vladimir Riha 2013-12-04 12:36:39 UTC
Created attachment 142837 [details]
sample project

Please open the attached project and open partials/partial1.html and paste


 {{ironman.date.}}


and invoke cc 
 => properties/methods of Date() are not offered, Go to declaration for date does not work. Similar situation is with

<div ng-bind="ironman.config."></div>

 => http and url are not offered


Product Version: NetBeans IDE Dev (Build 201312040002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2014-02-10 13:07:49 UTC
The problem is that the with context is not resolved in a function inside the with block. Like this code is right, but editor doesn't resolve the date as property of ironman object. 

var ironman = {
    name: "Hejlik",
    date: new Date()
}

with (ironman) {
    !(function( ) {
        console.log(date.getDay())
    })();
}
Comment 2 Petr Pisl 2014-02-10 13:29:36 UTC
There are basically two problems. The first one I already mentioned and now I entered new issue for it (issue #241640) and also cc doesn't work correctly.
Comment 3 skomisa 2014-08-11 02:23:36 UTC
I am also experiencing some, but not all, of these issues. See bug 246377.

Product Version: NetBeans IDE Dev (Build 201408100001)
Java: 1.8.0_20-ea; Java HotSpot(TM) 64-Bit Server VM 25.20-b22
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-ea-b23
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\JohnDoe\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\JohnDoe\AppData\Local\NetBeans\Cache\dev
Comment 4 Vladimir Riha 2014-08-11 11:28:13 UTC
*** Bug 246377 has been marked as a duplicate of this bug. ***
Comment 5 Vladimir Riha 2014-08-11 11:31:37 UTC
*** Bug 246378 has been marked as a duplicate of this bug. ***
Comment 6 Vladimir Riha 2014-08-15 12:03:31 UTC
*** Bug 246380 has been marked as a duplicate of this bug. ***
Comment 7 amobilia 2016-08-31 16:23:22 UTC
Still not working on 8.2 dev 201608290002
Comment 8 Jenselme 2016-09-04 09:37:24 UTC
On 201609020002 on Linux:

{{ironman.date.}}
=> properties/methods of Date are not offered.

<div ng-bind="ironman.config."></div>
=> http and url are offered and I can navigate to them.

<div ng-model="ironman."></div>
=> methods/properties of Runner are not proposed.