Skip to content

Errors and crashes on 3.0.0 and 3.0.2 for Windows 10 #871

@pgamelin

Description

@pgamelin

Describe the bug
3.0.0 uses the last version of readdirp (3.1.1) and causes crash on Windows 10 only
3.0.2 also uses the last version of readdirp and cause another crash

3.0.0 error

(node:14504)  UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 591)
(node:14504) UnhandledPromiseRejectionWarning: TypeError: Cannot mix BigInt and other types, use explicit conversions
    at FSWatcher._hasReadPermissions (xxx\node_modules\chokidar\index.js:755:36)
    at ReaddirpStream.filterPath [as _fileFilter] (xxx\node_modules\chokidar\index.js:680:12)
    at ReaddirpStream._isFileAndMatchesFilter (xxx\node_modules\chokidar\node_modules\readdirp\index.js:234:31)
    at ReaddirpStream._exploreDirectory (xxx\node_modules\chokidar\node_modules\readdirp\index.js:163:23)
    at ReaddirpStream._read (xxx\node_modules\chokidar\node_modules\readdirp\index.js:122:7)
(node:14504) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 592)

3.0.2 error

(node:2772) UnhandledPromiseRejectionWarning: TypeError: Expected pattern to be a non-empty string
    at picomatch (xxx\node_modules\picomatch\lib\picomatch.js:43:11)
    at createPattern (xxx\node_modules\chokidar\node_modules\anymatch\index.js:25:18)
    at Array.map (<anonymous>)
    at anymatch (xxx\node_modules\chokidar\node_modules\anymatch\index.js:77:28)
    at xxx\node_modules\chokidar\index.js:214:51
    at Array.every (<anonymous>)
    at xxx\node_modules\chokidar\index.js:212:22
    at Array.some (<anonymous>)
    at WatchHelper.filterDir (xxx\node_modules\chokidar\index.js:211:43)
    at ReaddirpStream.directoryFilter [as _directoryFilter] (xxx\node_modules\chokidar\lib\nodefs-handler.js:405:34)

(node:2772) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2772) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Versions (please complete the following information):

  • Chokidar version 3.0.0 / 3.0.2
  • Node version 12.6.0
  • OS version: Only Windows 10 (MacOs is fine)

To Reproduce
Steps to reproduce the behavior.

chokidar.watch('xxxx');

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions