【问题标题】:Could not open the editor: Editor could not be initialized. NoClassDefFoundError无法打开编辑器:无法初始化编辑器。 NoClassDefFoundError
【发布时间】: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


    【解决方案1】:

    1.清理您的项目并构建一次 2.只需转到标签菜单从标签窗口中选择新窗口

    前两步解决了,谢谢

    仍然遇到问题,请重新启动它。

    【讨论】:

      猜你喜欢
      • 2011-07-31
      • 1970-01-01
      • 2014-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多