【发布时间】:2014-06-10 05:49:57
【问题描述】:
我可以在 Eclipse 中导入 Play2 项目,并处理 scala 文件,但问题是我无法打开像“index.scala.html”这样的视图文件。当我尝试打开文件时,出现以下错误。
无法打开编辑器:无法初始化编辑器。
java.lang.NoClassDefFoundError: scala/util/parsing/input/Positional
at org.scalaide.play2.templateeditor.lexical.TemplatePartitionTokeniser.getScalaCommentAndPlainRegions(TemplatePartitionTokeniser.scala:28)
at org.scalaide.play2.templateeditor.lexical.TemplatePartitionTokeniser.tokenise(TemplatePartitionTokeniser.scala:66)
at org.scalaide.play2.templateeditor.sse.lexical.TemplateTextRegionsComputer.tokens$lzycompute(TemplateRegionParser.scala:98)
at org.scalaide.play2.templateeditor.sse.lexical.TemplateTextRegionsComputer.tokens(TemplateRegionParser.scala:96)
at org.scalaide.play2.templateeditor.sse.lexical.TemplateTextRegionsComputer.<init>(TemplateRegionParser.scala:128)
at org.scalaide.play2.templateeditor.sse.lexical.TemplateRegionParser.reset(TemplateRegionParser.scala:84)
................
但是打开其他文件没有问题。我不知道怎么了。 顺便说一句,我使用 typesafe-activator 来创建 play 项目。
我将不胜感激任何建议、解决方案或解决方法以使其发挥作用。
谢谢。
【问题讨论】:
标签: eclipse scala playframework-2.0 typesafe-activator