“object index is not a member of package views.html” when opening scala play project in scala ide

前端 未结 11 1027
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 01:36

I\'ve created a play project with play 2.3.7

In the project directory, I ran activator and ran the eclipse command to generate eclipse project files.

11条回答
  •  猫巷女王i
    2020-12-09 02:32

    1) Add the following line to your sbt.build file:

    EclipseKeys.preTasks := Seq(compile in Compile)
    

    2) Add the follwing line to your plugins.sbt file under the project folder:

    addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0")
    

    3) Run the "eclipse" command from within sbt

    as explained in the documentation of the play framework:

    Setting up your preferred IDE

提交回复
热议问题