Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play 2.1 Error: Cannot find symbol bug

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

Screenshot of error

Any ideas?

EDIT: I created another view + method in my controller, had the same exact error.

like image 409
thedeadlybutter Avatar asked Mar 23 '23 01:03

thedeadlybutter


1 Answers

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.

like image 195
thedeadlybutter Avatar answered Apr 02 '23 12:04

thedeadlybutter