You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Given a user-defined tag hello and a template base, an attempt to parse a file foo.txt containing {#include base}{#item}{#hello name=name /}{/item}{/include} as a template fails with the following exception:
io.quarkus.qute.TemplateException: Parser error in template [foo.txt] on line 1: section block end tag [item] does not match the start tag [hello]
at io.quarkus.qute.Parser.parserError(Parser.java:394)
at io.quarkus.qute.Parser.flushTag(Parser.java:345)
at io.quarkus.qute.Parser.tag(Parser.java:198)
at io.quarkus.qute.Parser.processCharacter(Parser.java:149)
at io.quarkus.qute.Parser.parse(Parser.java:106)
at io.quarkus.qute.EngineImpl.load(EngineImpl.java:135)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at io.quarkus.qute.EngineImpl.getTemplate(EngineImpl.java:109)
at io.quarkus.qute.deployment.QuteProcessor.analyzeTemplates(QuteProcessor.java:224)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:931)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2027)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1551)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1442)
at java.base/java.lang.Thread.run(Thread.java:832)
at org.jboss.threads.JBossThread.run(JBossThread.java:479)
Expected behavior
There is no parse error. The {#hello name=name /} part of the template acts the same as its manual substitution.
Actual behavior
The template cannot be parsed and throws an exception instead. See above.
Describe the bug
Given a user-defined tag
hello
and a templatebase
, an attempt to parse a filefoo.txt
containing{#include base}{#item}{#hello name=name /}{/item}{/include}
as a template fails with the following exception:Expected behavior
There is no parse error. The
{#hello name=name /}
part of the template acts the same as its manual substitution.Actual behavior
The template cannot be parsed and throws an exception instead. See above.
To Reproduce
mvn verify -pl extensions/qute/deployment -am -Dtest=io.quarkus.qute.deployment.tag.UserTagIncludeTest -DfailIfNoTests=false
Environment (please complete the following information):
uname -a
orver
:Darwin 19.4.0
java -version
:OpenJDK Runtime Environment Zulu14.27+1-CA (build 14+36)
af5b3be65ef24f838f5d8aac48beaf20a51c1767
Apache Maven 3.6.3
Additional context
The text was updated successfully, but these errors were encountered: