thedeadlybutter
thedeadlybutter

Reputation: 169

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.

Upvotes: 4

Views: 6656

Answers (2)

Jorge Casariego
Jorge Casariego

Reputation: 22212

In my case, once I cleaned my project it worked again

activator clean
activator run

Upvotes: 1

thedeadlybutter
thedeadlybutter

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

Related Questions