mtime polling watcher tracks known files only #218

Open
opened 2026-11-21 12:36:55 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-lens/src/watch.rs:Watch
What is hacky: Polls mtimes of tracked files; no new-file discovery and no notify dependency.
Proper fix: Use the notify crate with directory watches so new and deleted files are seen.
Original comment: "ponytail: mtime polling of tracked files only (no notify dependency, no new-file discovery). Switch to notify if tracking whole trees becomes necessary."

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-lens/src/watch.rs:Watch What is hacky: Polls mtimes of tracked files; no new-file discovery and no `notify` dependency. Proper fix: Use the `notify` crate with directory watches so new and deleted files are seen. Original comment: "ponytail: mtime polling of tracked files only (no `notify` dependency, no new-file discovery). Switch to `notify` if tracking whole trees becomes necessary." Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the lens label 2026-11-21 12:36:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#218