gmethvin / directory-watcher

A cross-platform Java recursive directory watcher, with a JNA macOS watcher and Scala better-files integration
Apache License 2.0
265 stars 34 forks source link

onUnknownEvent in trait Monitor of type (event: java.nio.file.WatchEvent[_])Unit is not defined #8

Closed rogertangcn closed 6 years ago

rogertangcn commented 6 years ago

The cause of the problem is because in Better files, File.Monitor.onUnknownEvent() method has removed count parameter in this commit.

gmethvin commented 6 years ago

Interesting. I thought better-files followed semver so I'm surprised they broke this in 3.4.0. The new API makes more sense though. The fix here is just to update to the latest better-files and update our code to conform to the new interface.

@rogertangcn interested in submitting a pull request?

rogertangcn commented 6 years ago

Tried to push my branch up, was told i don't have permission to do so. (sorry, my first time pushing up code to github repo of someone else.)

gmethvin commented 6 years ago

Great, thanks!

gmethvin commented 6 years ago

Pretty sure all that's required is:

gmethvin commented 6 years ago

Fixed by #9

gmethvin commented 6 years ago

This is fixed in version 0.5.0