Play framework tutorial: Cannot resolve symbol 'index'?

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

    This process worked for me:

    1. go into [File -> Project Structure -> Modules -> [YourAppModule] -> Sources Tab]
    2. navigate to the "target/scala-[version]/src_managed" directory (panel on the right).
    3. Right click the "main" directory and flag it as a source folder.
    4. Right click "controllers" and "views" and remove the "sources" flag (you should see the controllers and views folder become package directories).
    5. Apply -> OK -> recompile.

    from https://github.com/playframework/playframework/issues/1784#issuecomment-26345523

    0 讨论(0)
提交回复
热议问题