Play framework 2.1 Java / Eclipse: automatic reload does not work
Question /:
>The view is being compiled, but if you do not manually restart the server, refreshing in the browser will not display the changes. > For changes to the controller, use ~ run automatic compilation, but the content on the server will be updated only when the server is restarted manually. > Changes to the route under conf will only be displayed after manually restarting the server
Background:
>In OSX 10.8 Run > using eclipse Juno 4.2 on 3 2 > start the server with play ~ stun > restart the server only will display the changes of view, controller and route
To be able to make changes without having to restart the server on each attempt (unsuccessful):
>In the console: clean – > eclipse – > ~ run > in the console: clean – > compile – > ~ run > shut down / restart the computer > refresh with local hook or polling check – > delete classes from referenced libraries_ Managed and add it manually
Question:
>How to restore the automatic reload function? > How to solve this problem on ide besides eclipse?
More information:
> Playframework reload not working Mac OSX > Auto-reloading with Play framework on a network filesystem
They all point to jnotify as the reason why automatic reload does not work One of the answers (not enough representatives to write comments) mentioned how to "crack the SBT plug-in of the play framework to make the playreloader feature act as if jnotify is not available" How can we achieve this goal?
Solution
Let play automatically reload into eclipse:
>In eclipse preferences, go to general → workspace Cancel auto generation. > Restart OS X
For whatever reason, I had to restart OS X to get Akim's advice