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.
I have following expression in HTML <h1>{{case.title}} <small> {{case.version}} Test Case</small></h1> and it is marked as error "Expected an operand but found case" As the {{case.title}} is "really" $scope.case.title, this keyword is I think correct and editor shouldn't mark it Product Version: NetBeans IDE Dev (Build web-main-10531-on-20130516) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-41-generic-pae running on i386; UTF-8; en_US (nb)
Petre, can you take a loot at that please?
The problem is that we don't know the controller from the snippet. The controller can be defined else where, so we don't find the $scope.case property -> is put as global. We need to find out way, how to get the controllers to the snippet, or at least to know that the file is a part of an angular application.
The problem with the error is fixed with the change: http://hg.netbeans.org/web-main/rev/180641751c9b Now the embedding is done only on lexical level. The semantic level(parser) is switch off by default and only embedding plugins can handle it.
Integrated into 'main-golden', will be available in build *201305292301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/180641751c9b User: Petr Pisl <ppisl@netbeans.org> Log: #229605, #229887, #230223
Thanks, verified Product Version: NetBeans IDE Dev (Build 201305292301) Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.2.0-44-generic-pae running on i386; UTF-8; en_US (nb)