I am trying to setup an Scala SDK Eclipse-based IDE to work with Play 2.4 on Windows 8. I followed instructions given on the official guide, but after opening default view index.scala.html, I get a bunch of errors like:
ambiguous reference to overloaded definition,
both method display in class BaseScalaTemplate of type (o: Any)(implicit m: Manifest[error]) and method display in class BaseScalaTemplate of type (x: error) match argument types (play.twirl.api.HtmlFormat.Appendable) and expected result type Any
Error occurred in an application involving default arguments.
index.scala.html /play-scala-test-app/app/views line 3
Java Problem
type Html is not a member of package play.api.templates
index.scala.html /play-scala-test-app/app/views line
Java Problem
I tried to remove default imports and add new import play.twirl.api._
in the Play2
project properties, but that changed nothing. Is there a way to fix the configuration?
I don't know about the first issue, but the second one is caused by outdated SbtEclipse plugin. Because of that target/scala-2.11
subfolders are not being added as source paths to the project.
To fix this:
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
sbt eclipse
from project's root directoryIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With