1
1
mirror of https://github.com/enso-org/enso.git synced 2025-01-07 21:39:04 +03:00
Commit Graph

1 Commits

Author SHA1 Message Date
Hubert Plociniczak
2db4f4c5d9
Upgrade directory-watcher library ()
The change upgrades `directory-watcher` library, hoping that it will fix the problem reported in  (there has been a number of bug fixes in MacOS listener since then).

Once upgraded, tests in `WatcherAdapterSpec` because the logic that attempted to ensure the proper initialization order in the test using semaphore was wrong. Now starting the watcher using `watchAsync` which only returns the future when the watcher successfully registers for paths. Ideally authors of the library would make the registration bit public
(3218d68a84/core/src/main/java/io/methvin/watcher/DirectoryWatcher.java (L229C7-L229C20)) but it is the best we can do so far.

Had to adapt to the new API in PathWatcher as well, ensuring the right order of initialization.

Should fix .
2023-11-02 11:24:26 +00:00