ngocdaothanh/xitrum — Issue #56: giter8 Template generates invalid Project
Author: BowlingX
Created: 2011-12-11 09:51:11+00:00
State: open

if I run ```g8 ngocdaothanh/xitrum```, giter8 produces some Errors like:

>action parse error; template context is [anonymous]
>line 1:3: unexpected token: ]
>	at org.antlr.stringtemplate.language.ActionParser.action(ActionParser.java:143)
>	at org.antlr.stringtemplate.StringTemplate.parseAction(StringTemplate.java:876)
>	at org.antlr.stringtemplate.language.TemplateParser.action(TemplateParser.java:162)
>	at org.antlr.stringtemplate.language.TemplateParser.template(TemplateParser.java:127)
> [...]

and

> java.lang.NullPointerException
>	at org.antlr.stringtemplate.language.TemplateParser.action(TemplateParser.java:163)
>	at org.antlr.stringtemplate.language.TemplateParser.template(TemplateParser.java:127)
>	at org.antlr.stringtemplate.StringTemplate.breakTemplateIntoChunks(StringTemplate.java:850)
>	at org.antlr.stringtemplate.StringTemplate.setTemplate(StringTemplate.java:441)
> [...]

The Project is generated anyway, but I cannot run it with ```sbt run```:

>[info] Compiling 3 Scala sources to /Users/david/Projekte/my_project/target/scala-2.9.1/classes...
[error] /Users/david/Projekte/my_project/src/main/scala/my_project/action/AppAction.scala:44: unclosed multi-line string literal
[error] jsCometGet("chat", """
[error] ^
[error] /Users/david/Projekte/my_project/src/main/scala/my_project/action/AppAction.scala:48: illegal start of simple expression
[error] var escaped =
[error] ^
[error] two errors found
[error] {file:/Users/david/Projekte/my_project/}default-47a826/compile:compile: Compilation failed

I'm running Mac OSX 10.7 with scala 2.9.1 and sbt .11.2