scala - Eclipse shows errors in Play 2.4 setup -
i trying setup scala sdk eclipse-based ide work play 2.4 on windows 8. followed instructions given on the official guide, after opening default view index.scala.html, bunch of errors like:
ambiguous reference overloaded definition,
both method display in class basescalatemplate of type (o: any)(implicit m: manifest[error]) , method display in class basescalatemplate of type (x: error) match argument types (play.twirl.api.htmlformat.appendable) , expected result type any
error occurred in application involving default arguments.
index.scala.html /play-scala-test-app/app/views line 3
java problem
type html not member of package play.api.templates
index.scala.html /play-scala-test-app/app/views line
java problem
i tried remove default imports , add new import play.twirl.api._
in play2
project properties, changed nothing. there way fix configuration?
i don't know first issue, second 1 caused outdated sbteclipse plugin. because of target/scala-2.11
subfolders not being added source paths project. fix this:
- bump sbteclipse plugin version 4.0.0:
addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
- run
sbt eclipse
project's root directory - refresh project in eclipse.
Comments
Post a Comment