You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8c8e03e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(filesystem): normalize watcher paths to forward slashes on Windows
@parcel/watcher emits paths with OS-native separators, so on Windows the
callback receives backslash paths (e.g. `C:\foo\bar.txt`). The watcher
published these verbatim, but the rest of the codebase compares and stores
paths with forward slashes — causing path mismatches and inconsistent
behavior (file operations, @file mentions, cache keys) on Windows.
Normalize `update.path` to forward slashes before publishing
(mirroring the `storagePath` normalization in database/path.ts). The
option is a no-op on non-Windows platforms.
Test changes:
- Add a regression test asserting emitted paths contain no backslashes.
- Wrap expected paths in the existing live tests with a `toPosix` helper
so they compare correctly now that emitted paths are forward slashes
(previously both sides used backslashes on Windows, so the comparison
passed by coincidence without actually exercising normalization).
Closesanomalyco#35329
0 commit comments