Skip to content

"Failed to create the part's controls" when opening template with Template editor #33

@magro

Description

@magro

When opening a template with the template editor the editor cannot be opened and there's an error Failed to create the part's controls with the following stack trace in the Details:

java.util.NoSuchElementException: None.get
    at scala.None$.get(Option.scala:313)
    at scala.None$.get(Option.scala:311)
    at org.scalaide.play2.templateeditor.TemplateCompilationUnit.scalaProject$lzycompute(TemplateCompilationUnit.scala:50)
    at org.scalaide.play2.templateeditor.TemplateCompilationUnit.scalaProject(TemplateCompilationUnit.scala:50)
    at org.scalaide.play2.templateeditor.TemplateCompilationUnit.playProject$lzycompute(TemplateCompilationUnit.scala:51)
    at org.scalaide.play2.templateeditor.TemplateCompilationUnit.playProject(TemplateCompilationUnit.scala:51)
    at org.scalaide.play2.templateeditor.TemplateCompilationUnit.generatedSource(TemplateCompilationUnit.scala:174)
    at org.scalaide.play2.templateeditor.TemplateCompilationUnit.<init>(TemplateCompilationUnit.scala:163)
    at org.scalaide.play2.templateeditor.TemplateCompilationUnit$.fromEditorInput(TemplateCompilationUnit.scala:190)
    at org.scalaide.play2.templateeditor.TemplateCompilationUnit$.fromEditor(TemplateCompilationUnit.scala:197)
    at org.scalaide.play2.templateeditor.TemplateConfiguration.getTextHover(TemplateConfiguration.scala:118)

This is happening with scala-ide-play2 for Scala IDE 2.1.x on Scala 2.10 and Eclipse 4.2 (Juno). My Scala IDE version is 2.1.0.m3, eclipse is 4.2.1.v20120814.
Our play project is 2.1-RC2 java.

Can I do anything to solve this problem?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions