Note that there are some explanatory texts on larger screens.

plurals
  1. POPlay Framework 2.1 Java/Eclipse: Auto-Reload not working
    primarykey
    data
    text
    <p>The Problem/s:<br></p> <ul> <li>Views are being compiled but hitting refresh in a browser won't show the changes without restarting the server manually. </li> <li>Changes to controllers compile automatically using <code>~run</code> but only a manual server restart will update the content on the server.</li> <li>Changes to <code>routes</code> under <code>conf</code> are only shown after manually restarting the server.<br><br></li> </ul> <p>Background:</p> <ul> <li>running on OSX 10.8.3</li> <li>using Eclipse Juno 4.2.2</li> <li>Server is launched using <code>play ~run</code></li> <li><strong>Only</strong> restarting the server will show changes to views, controllers, routes<br><br></li> </ul> <p>To be able to make changes without having to restart the server each time I tried (without success):</p> <ul> <li>in the console: <code>clean</code> -> <code>eclipse</code> -> <code>~run</code></li> <li>in the console: <code>clean</code> -> <code>compile</code> -> <code>~run</code></li> <li>shutdown/restart the computer</li> <li>Tick <code>Refresh using native hooks or polling</code> -> remove <code>classes_managed</code> from <code>Referenced Libraries</code> and add it manually<br><br></li> </ul> <p>Questions:</p> <ul> <li><strong>How can the Auto-Reload functionality be restored?</strong></li> <li><strong>How can this problem be solved on IDEs besides Eclipse?</strong></li> </ul> <p>Further information:<br></p> <ul> <li><a href="https://stackoverflow.com/questions/15512229/playframework-reload-not-working-mac-osx">Playframework reload not working Mac OSX</a></li> <li><a href="https://stackoverflow.com/questions/14299300/auto-reloading-with-play-framework-on-a-network-filesystem">Auto-reloading with Play framework on a network filesystem</a></li> </ul> <p>Both of them point to JNotify as the cause for auto-reloading not to work. One of the answers (not enough rep to write a comment) mentions how one could "hack Play framework's sbt plugin to make the PlayReloader trait behave as if JNotify wasn't available." How could one achieve this?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload