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.
Summary: | Inner properties of $scope's property not resolved | ||
---|---|---|---|
Product: | web | Reporter: | Vladimir Riha <vriha> |
Component: | AngularJS | Assignee: | 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 |
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()) })(); } 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. 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 *** Bug 246377 has been marked as a duplicate of this bug. *** *** Bug 246378 has been marked as a duplicate of this bug. *** *** Bug 246380 has been marked as a duplicate of this bug. *** Still not working on 8.2 dev 201608290002 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. |
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)