Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play framework tutorial: Cannot resolve symbol 'index'?

Tags:

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 figure out what the problem is here? The project works but it shows these warnings? Any ideas on what this is and how to fix it? In the tutorial, about 3.5 minutes into it, the red marks magically disappear and the video presenter doesn't explain it.

enter image description here

like image 946
djangofan Avatar asked Jun 05 '13 04:06

djangofan


2 Answers

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

like image 56
user363349 Avatar answered Sep 28 '22 09:09

user363349


The Play 2.0 support plugin is only available in the IntelliJ IDEA Ultimate edition.

enter image description here

like image 25
maba Avatar answered Sep 28 '22 11:09

maba