Skip to content

Commit 2fe6286

Browse files
authored
Rewrite Linux directory watcher. (#2260)
1 parent cd12487 commit 2fe6286

File tree

10 files changed

+742
-403
lines changed

10 files changed

+742
-403
lines changed

pkgs/watcher/CHANGELOG.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@
1010
exhaustion, "Directory watcher closed unexpectedly", much less likely. The old
1111
implementation which does not use a separate Isolate is available as
1212
`DirectoryWatcher(path, runInIsolateOnWindows: false)`.
13-
- Bug fix: fix `DirectoryWatcher` tracking failure on Linux. Before the fix,
14-
renaming a directory would cause subdirectories of that directory to no
15-
longer be tracked.
16-
- Bug fix: fix `DirectoryWatcher` incorrect events on Linux when a file or
17-
directory is moved between directories then immediately modified or deleted.
18-
- Bug fix: fix `DirectoryWatcher` duplicate ADD events on Linux when a file
19-
is created in a recently moved or created directory.
13+
- Bug fix: new `DirectoryWatcher` implementation on Linux that fixes various
14+
issues: tracking failure following subdirectory move, incorrect events when
15+
there are changes in a recently-moved subdirectory, incorrect events due to
16+
various situations involving subdirectory moves.
2017
- Bug fix: in `DirectoryWatcher` while listing directories skip symlinks that
2118
lead to a directory that has already been listed. This prevents a severe
2219
performance regression on MacOS and Linux when there are more than a few symlink loops.

0 commit comments

Comments
 (0)