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

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

    @brent-foust 's answer worked for me but only initially. Every time I rebuilt the project from within IDEA I would then get "not found: routes" errors from within target\scala-2.11\twirl\main\views\html\main.template.scala until I performed Brent's workaround again.

    I eventually discovered the solution to that was changing a line in the .iml file from

    
    

    to

    
    

    I don't know what the long term implications of doing this are but it has fixed this problem. Some of the other similar problems mentioned might also be fixed by applying the same change to some of the other folders listed in the .iml.

提交回复
热议问题