Play framework tutorial: Cannot resolve symbol 'index'?

前端 未结 7 1073
轻奢々
轻奢々 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:14

    The routes file and the views are compiled only when the project is first loaded in the browser. Till then, IntelliJ shows the error as it cannot find those classes. But the errors magically dissppear when you run the application and load it into browser.

    You can verify this in the play console. After you do a play run , and load the url localhost:9000 in the browser, you can see compilation messages in the play console saying

    ...compiling 22 scala sources....

提交回复
热议问题