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
Caused by: io.quarkus.qute.TemplateException: Found template problems (1):
[1] Incorrect expression found: {name}
- Only type-safe expressions are allowed in the checked template defined via: org.acme.quarkus.sample.HelloResource $Templates.hello(); an expression must be based on a checked template parameter [], o
r bound via a param declaration, or the requirement must be relaxed via @CheckedTemplate(requireTypeSafeExpressions = false)
- at HelloResource /hello.txt:1
Making the sample compile by adding early noise with optional parameter (requireTypeSafeExpressions = false)
Maybe along with a note that explains briefly why there is (requireTypeSafeExpressions = false) and tells that it will be explained a few paragraphs later
The text was updated successfully, but these errors were encountered:
marc-bouvier
changed the title
In Qute guide
In Qute guide, first Type-safe example does not compile
Jul 8, 2021
marc-bouvier
changed the title
In Qute guide, first Type-safe example does not compile
In Qute guide, first Type-safe template example does not compile
Jul 8, 2021
Describe the bug
The first example about Type-safe template does not compile.
It throws a
io.quarkus.qute.TemplateException
that points the need for checked parameter.Which pages
Stack Trace
A working example might be
Either
Or :
Here is what comes to my mind about this.
(requireTypeSafeExpressions = false)
(requireTypeSafeExpressions = false)
and tells that it will be explained a few paragraphs lateror
The text was updated successfully, but these errors were encountered: