eclipse - Unknown reason for error with Play! Framework project & use only java in project -
i'm getting error on created play! project , don't know why. can 1 me? error i'm getting following: "index cannot resolved"
i have question also, in play! framework web, says following , have no idea how it, can explain me little , how it?:
if not want install scala ide , have java sources in > project, can set following:
eclipsekeys.projectflavor := eclipseprojectflavor.java // java project. don't expect scala ide eclipsekeys.createsrc := eclipsecreatesrc.valueset(eclipsecreatesrc.managedclasses, eclipsecreatesrc.managedresources) // use .class files instead of generated .scala files views , routes eclipsekeys.pretasks := seq(compile in compile) // compile project before generating eclipse files, .class files views , routes present
first question)
eclipse doesn't know views (also called templates) yet. scala classes generated actual my_view_name.scala.html
files during compiling. after compiled have run activator eclipse
(or ' play eclipse
older versions of play) , errors magically disappear.
second question)
i've never set those. guess have set in project/plugins.sbt
addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
and, if use no scala (java-only), in build.sbt
eclipsekeys.projectflavor := eclipseprojectflavor.java // java project. don't expect scala ide eclipsekeys.createsrc := eclipsecreatesrc.valueset(eclipsecreatesrc.managedclasses, eclipsecreatesrc.managedresources) // use .class files instead of generated .scala files views , routes eclipsekeys.pretasks := seq(compile in compile) // compile project before generating eclipse files, .class files views , routes present
Comments
Post a Comment