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

前端 未结 11 1008
隐瞒了意图╮
隐瞒了意图╮ 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:15

    I tried all solutions without any positiv result.
    So I went to Preferences > Build, Execution, Deployment > Build Tools > sbt and checked Use sbt shell for imports and builds.
    This let the compile button in intelliJ compile with the sbt shell. I think this is better anyway, since a build server or something similar will compile the same way and not like intelliJ.

提交回复
热议问题