Play framework tutorial: Cannot resolve symbol 'index'?

前端 未结 7 1078
轻奢々
轻奢々 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条回答
  •  春和景丽
    2020-12-25 13:21

    1. Open "Project" sidebar
    2. Go to target/scala-/src_managed
    3. Right-click the src_managed, "Mark Directory As"/"Generated Source Root"
    4. Subdirectories of src_managed are from a strange reason marked as source roots. You can disable it.
    5. Enjoy.

    Note that javascript routes seem to be still ignored from a strange reason, so this is not a perfect solution. Nevertheless, it is better than nothing.

提交回复
热议问题