I've got Intellij 15.0.5 and I cannot get rid of this error
object index is not a member of package views.
I've created a new play project in Intellij and also using the activator command
activator new PlayTestProject
But I keep getting the above error. I've read all the other similar question on SO but none of them helped and I've tried the following
Result: I didn't see any change to my project. When I hit OK, the window disappears but if I try the same the second time. Nothing happens and the window is still there!
Result: I get this error
Error:Module 'client' production: java.lang.NullPointerException
I've tried
But I keep getting the same error in Intellij.
Running sbt compile
on command line runs the build successful. But Intellij keeps shows me the above error.
How do I fix this ?
Alright if anyone is running into the same problem. The fix was to mark the following two directories as Sources Roots
in Intellij.
Steps:
target
folder -> Mark directory as
-> Cancel exclusion
(If you don't see Cancel exclusion
do the next step.target/scala-2.11/twirl/main
folder -> Mark directory as
-> Sources Root
target/scala-2.11/routes
folder -> Mark directory as
-> Sources Root
Open module settings
-> Sources
-> and remove the above two directories if there are added in the Excluded folder
's section.This fixed my problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With