Could not open the editor: Editor could not be initialized. NoClassDefFoundError

为君一笑 提交于 2019-12-24 14:26:04

问题


I can import the Play2 project in eclipse, and work on scala files, but the problem is I can't open view files likes 'index.scala.html'. When I try to open the file I get following error.

Could not open the editor: Editor could not be initialized.

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)
................

But there is no problem opening other files. I don't know what's wrong. btw, I used typesafe-activator to create play project.

I will appreciate any suggestions, solutions or workarounds to make it work.

Thank you.


回答1:


1.Clean your project and build once 2.Just go to tab menu select newwindow from tab window

i were solved with first two steps thanks

still you facing the problem please restart it.



来源:https://stackoverflow.com/questions/24133755/could-not-open-the-editor-editor-could-not-be-initialized-noclassdeffounderror

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!