Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scala code causes error in eclipse for playframework-2.0

I am trying out the todolist tutorial of playframework-2.0 on eclipse.I eclipsified the code and imported it sothat eclipse(helios) can detect the play api properly.I am however having trouble with the scala part

I updated eclipse to get the scala ide plugin .Still eclipse shows error markers next to

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

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

Any idea how to resolve this?

like image 623
damon Avatar asked Jun 09 '12 11:06

damon


2 Answers

Have a look at the Setup and use Play framework in Scala IDE tutorial. For any trouble, bug us on the scala-ide-user ML.

like image 70
Mirco Dotta Avatar answered Sep 19 '22 15:09

Mirco Dotta


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

like image 27
Kurt Avatar answered Sep 21 '22 15:09

Kurt