Personally, I do not use the Play addon from IntelliJ. It is always much faster and more reliable to use the command line to compile / generate various elements, including the famous *.template.scala , at the beginning of your notification cannot resolve symbol index .
All you have to do is run this command line based on the application root folder: play , then compile . Of course, do not do this Rebuild project from IntelliJ, otherwise you would remove the generated class files from the command line. When you work with non-managed resources (e.g. templates), just create cmd+F9 to compile.
After making sure that you are compiling from IntelliJ, it is configured to display the same folder as your target folder (as sbt gen-idea (although I use play , then idea with-sources=yes ), it is usually automatically configured).
Then your IntelliJ project will no longer complain about some unresolved views.html.index .
Of course, if you really want to use your IntelliJ IDE, make sure you install the latest Play 2.X plugin .
Alternatively, create a custom run command in IntelliJ to take into account SBT compilation.
source share