2010-08-06 96 views
1

環境Grails的控制檯執行錯誤

  • 的Grails 1.2.2
  • Ubuntu 9.10的
  • 的IntelliJ 9.0.3

一切工作正常的IntelliJ。當我在項目根目錄執行「grails console」時,我得到以下內容

Error executing script Console: groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed, SimpleTemplateScript1.groovy: 2: illegal string body character after dollar sign;       
    solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 2, column 10.                         
1 error  

回答

1

想通了!在腳手架目錄中,文件「Controller.groovy」以某種方式在那裏出現。刪除這個文件解決了這個問題。獲得的教訓 - 在看到模板解析錯誤時,仔細查看模板目錄。

+0

好工作@steve,救了我很多壓力在這裏的人! – gotomanners 2012-05-13 00:50:52