-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serve-live-assets-autorefresh strategy #37
Conversation
Seems like this fails on JDK 6 because of nio. That would make this a breaking change. Any thoughts? |
I did a quick research and it looks like we will have to use polling for this in JDK 6 (existing clojure solutions don't support JDK 6). Now we have 3 options:
What would you prefer? |
I think I would prefer another solution, if possible:
Possible? On Mon, Apr 27, 2015 at 9:57 AM Anton Onyshchenko notifications@github.com
|
Good idea. I will implement it. Should I also update the documentation in On Mon, Apr 27, 2015 at 11:42 AM, Magnar Sveen notifications@github.com
Best Regards, |
That would be great! On Mon, Apr 27, 2015 at 11:58 AM Anton Onyshchenko notifications@github.com
|
@magnars, I've finally fixed tests and updated documentation. Please review it and merge if you thing it's good enough :) |
This looks pretty great, mate. Well done! 👍 😄 I'm happy to merge this, but one question first: Have you tried writing the tests without |
Actually I have a problem with trying to avoid mock here - The dir watcher defined in a test is notified only when you change the file via some other process (text editor, or clojure repl). I have no idea why this happens. Maybe you can help? |
I finally found some time to look at this. After a frustrating time, I thought to run dirwatch's own tests, which also do not run on my machine. I remember implementing a file-watcher for node several years ago, and Mac OSX was certainly the worst of the bunch when it came to triggering change events in the file system. I think we'll have to resort to mocks in this case. |
7d7f4fb
to
87b865a
Compare
Then you can merge my pull-request. I've reverted the last commit, so now it relies on mocking |
Well done, Sir. Thanks for sticking with it through all this. |
serve-live-assets-autorefresh strategy
|
Nice! Thank you :) |
Implementation of ideas from #34