How to make Eclipse see the changes in Play! compiled templates?

eclipse, java, playframework-2.0, scala

Solution

I did the following things :

- As you did, I turned on the workspace auto-refresh (in settings, General -> Workspace, then select "Refresh using native hooks or pooling")

- I removed the `classes_managed` directory generated by `play eclipsify` from my build path, and I added it manually using "Add external class folder"

And then it worked for me. It seems that there is a bug with the `eclipsify` command.

Problem

So, I'm trying out Play 2 with Eclipse. I create a new project, compile it, run eclipsify and import it into Eclipse. So far so good. The problem I'm having is that when I make a change in the Scala template, my Java controllers can't see it, and Eclipse marks the code as invalid. For example: I added a second parameter in my index template ``` @(message: String, nesto:Integer) ``` When I try to render my file from the controller, the following line displays an error, because Eclipse still thinks that the index.render takes one String. ``` return ok(index.render("Your new application is ready.",2)); ``` I turned on the workspace refreshing in Eclipse, and play eclipsify automatically added the classes_managed directory to the build path.

Original source