GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: also suppress readdir EACCES/EINVAL on the watched directory (#187) by alexander-akait · Pull Request #298 · webpack/watchpack

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Apr 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

fixes #187

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
claude added 3 commits April 27, 2026 23:17
@claude
fix: also suppress readdir EACCES/EINVAL on the watched directory (#187)
187282d
The lstat error path in `doScan` already swallows `EACCES`/`EPERM`/`EBUSY`
and `EINVAL` (Windows) so unreadable entries inside a watched parent (e.g.
`pagefile.sys` under `/mnt/c` on WSL) don't print "Watchpack Error
(initial scan)". Mirror the same set in the `readdir` error handler so an
unreadable directory itself is treated as removed instead of logging.

Adds regression tests covering both the lstat and readdir paths for
`EACCES`/`EPERM`, with the `EINVAL` variants gated to Windows where the
suppression actually applies.
@claude
fix: also swallow ENODEV in lstat/readdir scan paths (#187)
6655384
Adds `ENODEV` to the list of error codes treated as "missing" / "directory
removed" in `doScan`. Closes the gap reported by CumpsD in #187:

    Watchpack Error (initial scan): Error: ENODEV: no such device, lstat '/efi'

`ENODEV` surfaces when an entry exists but its underlying device is gone
(unmounted, ejected, or never mounted), which is the same operational
situation as `ENOENT`/`EPERM` from watchpack's perspective: we can't
inspect the entry, so don't log noise — just treat it as gone.

Tests extended to cover ENODEV in both the lstat and readdir paths.
@claude
chore: add changeset for #187 scan-error suppression
74bd5ff
@changeset-bot

changeset-bot Bot commented Apr 27, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 74bd5ff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
watchpack Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Apr 27, 2026

Copy link
Copy Markdown

CLA Not Signed

  • ❌ - login: @claude / name: Claude . The commit (187282d, 6655384, 74bd5ff) is not authorized under a signed CLA. Please click here to be authorized. For further assistance with EasyCLA, please submit a support request ticket.

claude[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codspeed

codspeed Bot commented Apr 27, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 36 untouched benchmarks


Comparing claude/investigate-issue-187-mL3bZ (74bd5ff) with main (b5de069)

Open in CodSpeed
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Apr 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.87%. Comparing base (b5de069) to head (74bd5ff).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
+ Coverage   95.77%   95.87%   +0.10%     
==========================================
  Files           7        7              
  Lines        1183     1189       +6     
  Branches      346      352       +6     
==========================================
+ Hits         1133     1140       +7     
+ Misses         45       44       -1     
  Partials        5        5              
Flag Coverage Δ
integration 95.87% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait merged commit b00ac61 into main Apr 28, 2026
48 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait deleted the claude/investigate-issue-187-mL3bZ branch April 28, 2026 08:09
@github-actions github-actions Bot mentioned this pull request Apr 28, 2026
chore(release): new release #288
Merged
@danielroe danielroe mentioned this pull request Jul 20, 2026
fix: suppress stats errors for unstat-able paths in watch-event path #326
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Watchpack Error (initial scan): Error: EACCES: permission denied, lstat '/mnt/c/...'

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@alexander-akait @claude
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.