Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.0-M1
-
Fix Version/s: 2.0-M1
-
Component/s: View technologies
-
Labels:None
Description
A project with the google-visualization plugin installed won't build a war because some of the GSPs report false errors. This is a distilled version of the failing code from one:
<g:each var="formatter" in="${visualizationData.formatters}"> var formatter = new ${formatter.object}(${formatter.options}); </g:each>
The issue appears to be the parentheses - if you remove them it works. The top of the stack trace is
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Unclosed GSP expression
at org.codehaus.groovy.grails.web.pages.GroovyPageScanner.checkValidExpressionState(GroovyPageScanner.java:272)
at org.codehaus.groovy.grails.web.pages.GroovyPageScanner.nextToken(GroovyPageScanner.java:238)
at org.codehaus.groovy.grails.web.pages.GroovyPageParser.page(GroovyPageParser.java:740)
at org.codehaus.groovy.grails.web.pages.GroovyPageParser.generateGsp(GroovyPageParser.java:340)
at org.codehaus.groovy.grails.web.pages.GroovyPageParser.generateGsp(GroovyPageParser.java:329)
Issue Links
- is related to
-
GRAILS-7180
Double closure fails in GSP
-
- relates to
-
GRAILS-7741
HTML context influences brackets and braces check which leads to GSP compilation errors
-
-
GRAILS-7915
GSP compilation apparently broken in build #1229
-
- Trackbacks
-
[OTT-732] Upgrade to Grails 2
What I have found and done some weeks ago with Grails 2 RC1.
I have a local 'grails2' git branch with all the mentioned changes.
* Tomcat - WARNING [OK]
** INFO > core.StandardEngine - Starting Servlet Engine: Apache Tomcat/7.0.16
** WARN > dige...
Probably related to Jeff's recent parser changes