[2.1-RC2] Hot-Reload not working on Mac OS X 10.8 (JNotify)

465 views
Skip to first unread message

Ali Russell

unread,
Jan 23, 2013, 8:15:36 AM1/23/13
to play-fr...@googlegroups.com
Has anyone managed to get hot reload working on Mac OS 10.8+?  

The JNotify library indicates its only been tested up to 10.6.2, and since i migrated to play 2.1 no changes are being picked up by play..

What was wrong with the way play detected changes pre 2.1?

Guillaume Bort

unread,
Jan 23, 2013, 12:30:14 PM1/23/13
to play-fr...@googlegroups.com
Yes, I'm using MacOS 10.8.2 and it works for me.


--
 
 



--
Guillaume Bort, http://guillaume.bort.fr

Ali Russell

unread,
Jan 24, 2013, 5:13:35 AM1/24/13
to play-fr...@googlegroups.com
Ok, so i ran JNotify manually, and it seems to work ok on other directories, but doesn't report anything on my play project directory... 

Ill try moving it perhaps.

Ivan Meredith

unread,
Mar 13, 2013, 9:21:15 PM3/13/13
to play-fr...@googlegroups.com
Had the exact same issue. I have a ~/work directory and every directory in ~/work was not working with JNotify. So I 

mkdir ~/work2; cp -a ~/work/myproj ~/work2; mv ~/work ~/work3, mv ~/work2 ~/work 

and now it works. No idea why it wasnt working.

Ali Russell

unread,
Mar 14, 2013, 9:32:09 PM3/14/13
to play-fr...@googlegroups.com
Ive found that it seems to sometimes stop working on 10.8.2...  a restart usually fixes it.

also no real idea why though :-(

Guillaume Bort

unread,
Mar 15, 2013, 9:31:27 AM3/15/13
to play-fr...@googlegroups.com
I use 10.8.2 myself, and I don't have any problem with Hot-reloading.


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Anton Fagerberg

unread,
Mar 18, 2013, 1:28:57 PM3/18/13
to play-fr...@googlegroups.com
I ran into this problem today as well. I'm running 10.8.3 and I've used Play 2.1.0 since it was released on this machine and on my laptop without problems.

When I started working today and saved a file (i start play with ~run but had the same problems with just run) I would see that the file was changed and recompiled in the Play console but when I reloaded the page nothing would change.
So I would get these messages:
[info] Compiling 1 Scala source to /Users/anton/Development/Code/SecretProject/target/scala-2.10/classes...
[success] Compiled in 1s

But this would not appear on reload:
--- (RELOAD) ---

[info] play - Shutdown application default Akka system.
[info] play - database [default] connected at jdbc:mysql://127.0.0.1:3306/secret?zeroDateTimeBehavior=convertToNull
[info] play - database [communication] connected at jdbc:mysql://127.0.0.1:3306/secret
[info] play - Starting application default Akka system.
[info] play - Application started (Dev)

However, every time i restarted Play (Ctrl+c) and started it again with ~run / run the page reload worked fine one time, then same problem.
I tried to run a "clean" and "clean-all", I tried deleting the target and project/target but nothing helped.

What did help was a reboot of the entire machine.
I never shutdown my machine, I always use Sleep so it is not uncommon for me to have a month uptime and I've never had this problem before.
It might have something to do with the update to 10.8.3? Beside that, I don't know what could have caused this.
I have not changed anything else in my development setup.

Filipe Figueiredo

unread,
Mar 19, 2013, 8:35:02 PM3/19/13
to play-fr...@googlegroups.com
Hi.

I am having the same problem... but not even a reboot solve it! I've created a thread in stackoverflow, if someone answer I will post here the solution. If you want to follow this, see http://stackoverflow.com/questions/15512229/playframework-reload-not-working-mac-osx

sts2055

unread,
Mar 29, 2013, 9:24:00 PM3/29/13
to play-fr...@googlegroups.com
Having the exact same problem here after updating to Mac OSX 10.8.3.
Restarting the machine won't fix it.

sts2055

unread,
Mar 30, 2013, 3:19:24 PM3/30/13
to play-fr...@googlegroups.com
Copy pasting a comment from here: http://stackoverflow.com/questions/15709325/play-framework-2-1-java-auto-reloading-not-working

"If you are using Eclipse try to disable the automatic build, maybe is interfering with the play! code generation."

Disabling "Build automatically" under "Workspace" in the Eclipse Preferences solved it for me.
Message has been deleted

Adelar da Silva Queiróz

unread,
May 5, 2013, 2:27:00 PM5/5/13
to play-fr...@googlegroups.com
I'm working with Sublime Text. Anyone has a hint about how to solve this problem?

Thanks

Alvaro Carrasco

unread,
Jan 15, 2014, 10:19:10 AM1/15/14
to play-fr...@googlegroups.com
For the benefit of anyone running into this issue still or googling for it. On OSX (maybe only some versions?), the way the folder was created (command line vs finder) or the case used in the parent paths seems to trigger the issue. 

We've been able to resolve it by moving the project to a new path (all lower case after the home dir) or by recreating all the paths in finder. I am not sure which one resolved it, but one of them did. After that, hot-reloading works fine.

Alvaro
--
Scala SQL toolkit: https://devstack.io/scoop
Scala DynamoDB toolkit: https://github.com/gravitydev/dynasty


2013/5/5 Adelar da Silva Queiróz <adel...@gmail.com>
I'm working with Sublime Text. Anyone has a hint about how to solve this problem?

Thanks

--
Reply all
Reply to author
Forward
0 new messages