Using Scala 3.4.0 with twirl results in warnings like:
The syntax x: _* is no longer supported for vararg splices; use x* instead
The source of the issue comes from here and here using .toIndexedSeq:_* in codegen.
So, the methods compile and compileVirtual need to feed syntax variant options when invoking parseAndGenerateCode that in turn invokes generateFinalTemplate->generateCode.
Probably many ways to solve this. One is to change compile and compileVirtual to include scala version. I have no idea what maven-twirl and cradle-twirl do.
Using Scala 3.4.0 with twirl results in warnings like:
The source of the issue comes from here and here using
.toIndexedSeq:_*
in codegen.So, the methods
compile
andcompileVirtual
need to feed syntax variant options when invokingparseAndGenerateCode
that in turn invokesgenerateFinalTemplate->generateCode
.Probably many ways to solve this. One is to change
compile
andcompileVirtual
to include scala version. I have no idea what maven-twirl and cradle-twirl do.