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

前端 未结 11 1007
隐瞒了意图╮
隐瞒了意图╮ 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条回答
  •  [愿得一人]
    2020-12-09 02:35

    I had the same issue running Play 2.4.0-RC1 using default SBT layout (disablePlugins(PlayLayoutPlugin)) and solved it by adding to build.sbt:

    sourceDirectories in (Compile, TwirlKeys.compileTemplates) :=
        (unmanagedSourceDirectories in Compile).value
    

提交回复
热议问题