Reputation: 169
I have the following in my controller,
public static Result index() {
return ok(indexpage.render());
}
my indexpage.scala.html page,
@main("Test") {
}
yet Play 2.1 is giving me the following error: error: cannot find symbol
Any ideas?
EDIT: I created another view + method in my controller, had the same exact error.
Upvotes: 4
Views: 6656
Reputation: 22212
In my case, once I cleaned my project it worked again
activator clean
activator run
Upvotes: 1
Reputation: 169
Found the problem, when I cleaned up my imports I accidentally removed
import views.html.*;
from my controller class. Would have posted answer earlier but for some reason people with less than 10 reputation have to wait 8 hours before answering a question they made.
Upvotes: 6