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 235643 - Intellisense reports error on {{}} when object notation is used to pass paramter in earlier snippet
Summary: Intellisense reports error on {{}} when object notation is used to pass param...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: 7.4_HR_FIX
Depends on:
Blocks:
 
Reported: 2013-09-07 16:33 UTC by Emmentaler
Modified: 2013-09-16 13:51 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmentaler 2013-09-07 16:33:48 UTC
Given the following HTML partial used with Angular

<table class="table table-striped">
    <tr ng-repeat="nutrient in item.nutrients| filter:{group:1} | orderBy:'order'" class="">
        <td>
            {{nutrient.description}}
        </td>
        <td>
            {{nutrient.value}} {{nutrient.units}}
        </td>
    </tr>
</table>

The editor reports: Expected } but found eof on line 7/8
This is legitimate markup for passing a parameter to the filter.  Removing the {group:1} makes the error go away.
Comment 1 Vladimir Riha 2013-09-08 10:42:29 UTC
Reproducible, seems to be caused by the content of ng-repeat but I don't think this is a P2 issue.
Comment 2 Petr Pisl 2013-09-10 12:44:44 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/d4b04d1aa983

If you think that should be in NetBeans 7.4, increase the priority to P2.
Comment 3 Emmentaler 2013-09-10 15:23:04 UTC
Per Petr Pisl comment on his resolution. I am requesting this be P2 priority for inclusion in 7.4.  Let me know if I did this right.
Comment 4 Quality Engineering 2013-09-11 01:41:36 UTC
Integrated into 'main-silver', will be available in build *201309110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d4b04d1aa983
User: Petr Pisl <ppisl@netbeans.org>
Log: #235643 - Intellisense reports error on {{}} when object notation is used to pass paramter in earlier snippet
Comment 5 Vladimir Riha 2013-09-11 06:08:56 UTC
I agree with targeting 7.4. 

Verified in trunk, please continue with transplanting according to HR process. Thank you 


Product Version: NetBeans IDE Dev (Build 201309110001)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Petr Pisl 2013-09-11 16:32:14 UTC
Petre, could you please review the fix. Thanks.
Comment 7 Petr Pisl 2013-09-11 17:05:52 UTC
The fix is integrated into releases  http://hg.netbeans.org/releases/rev/b03ebd325d3b to be in the RC1
Comment 8 Vladimir Riha 2013-09-16 13:51:29 UTC
Verified in RC1

Product Version: NetBeans IDE 7.4 RC1 (Build 201309152201)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)