Scala code causes error in eclipse for playframework-2.0

I am trying to execute todolist tutorial playframework-2.0 on eclipse.I eclipsified code and import it sothat eclipse(helios) can correctly determine the game api. I have a problem with scala part

I updated eclipse to get the scala ide plugin. The eclipse splash screen shows error markers next to

 return ok(views.html.index.render(Task.all(),taskForm)); 

The error popup shows views.html.index cannot be resolved to a type

Any idea how to solve this problem?

+7
source share
3 answers
+7
source

In my case, the solution was to add the / target / scala-2.10 / src_managed / main folder to the classpath.

+2
source

I managed to get rid of this warning by overshadowing the project again

 play eclipse 

or

 activator eclipse # If you use activator 
+1
source

All Articles