Play framework tutorial: Cannot resolve symbol 'index'?

前端 未结 7 1075
轻奢々
轻奢々 2020-12-25 12:29

I followed a tutorial here and although I got the entire tutorial working just fine, one of the classes in my IntelliJ project is marked with \"red warnings\". I cannot fig

7条回答
  •  -上瘾入骨i
    2020-12-25 13:04

    Go to the Run configuration for your Play project and remove the 'Make' step from the "Before Launch" section. Then, IntelliJ would simply run the Play project without attempting to compile, and the views will get compiled automatically.

    Until the views are compiled, IntelliJ doesn't know they exist, and can't make the project itself. Clearly this is a problem with IntelliJ's plugin, but since you're already relying on Play to do your compiling dynamically, this workaround doesn't hurt the workflow too much.

提交回复
热议问题