Occasionally after adding a view in Play 2.4.x, IntelliJ IDEA sometimes gets confused and absolutely refuses to build. Even rebuild Project fails:
This still happens from time-to-time in IDEA 15. And when it does, the command line provides the quickest, most-reliable fix:
sbt clean; sbt compile
That’s it! IDEA will now compile the project as expected.
Update:
In the rare case that sbt compile
completed successfully on the command line, but IntelliJ IDEA 15 still gives the same “object x is not a member” error, then this has solved IDEA’s confusion:
File Menu: