I would like to use Eclipse as IDE for a Scala web application using Play Framework. I downloaded Eclipse 3.6.2. Then I installed Scala IDE 2.0 (beta) for Eclipse. I downloaded Play Framework 1.2.2RC1 and installed the Scala Module using play install scala-0.9.1
and generated a new site with play new mysite
. Then I eclipsified it with play eclipsify mysite
and imported the project in Eclipse.
But now I get many errors in Eclipse. Is this anything I can fix or are the different projects incompatible?
This is the generated code that contains errors in Eclipse (but it works when I run the application).
package controllers
import play._
import play.mvc._
object Application extends Controller {
import views.Application._
def index = {
html.index("Your Scala application is ready to go home!")
}
}
And this is how it looks like in Eclipse: