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 232790 - Angular filters with parameters marked as errors in JSP
Summary: Angular filters with parameters marked as errors in JSP
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 11:53 UTC by ender01
Modified: 2013-07-18 14:41 UTC (History)
1 user (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 ender01 2013-07-16 11:53:09 UTC
Using Build 201307092200 the following code is marked as an error, but it's perfectly valid:

{{information.recovered | number:0}}

The error states:
Expected; but found : 
information.recovered | number:0
              ^

This on an existing JEE Web project built with maven if that matters at all. Seems to be just an angularjs/javascript problem though.
Comment 1 Vladimir Riha 2013-07-16 11:55:44 UTC
Please try newer build, there are fixes for Angular. This works for me in html file. Thank you


Product Version: NetBeans IDE Dev (Build 201307152300)
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 Vladimir Riha 2013-07-16 12:04:40 UTC
Could you please also specify which file type do you use? Simply reopen then, thank you.
Comment 3 ender01 2013-07-17 19:42:08 UTC
Tried with a newer build: Build 201307152300 and it is still failing.

The file types are actually .html files, but I have them treated as .jsp pages by changing their association through the preferences.
Comment 4 Vladimir Riha 2013-07-18 06:18:09 UTC
Thank you, this is reproducible. Angular support seems to be missing in JSP files (no directives completion...)
Comment 5 Marek Fukala 2013-07-18 14:41:26 UTC
changeset:   258588:60244ac3c9a3
summary:     Making the creation of the embedded javascript source transitional for templating languages (e.g. JSP->HTML->JS) to make the html.editor's JsEmbeddingProviderPlugins to work. This enables the AngularJS and Knockout supports for templating languages as well. So far JSP, PHP and XHTML are switched. Possibly also converts Smarty, Twiggy etc. (those providers which remained in the direct javascript2.editor/JsEmbeddingProvider).