Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Gulp watch crashes after composer require #35

@NielsdeBlaauw

Description

@NielsdeBlaauw

When watching in one terminal and executing a composer require in another the gulp process crashes with the following message:

fs.js:952
  return binding.readdir(pathModule._makeLong(path), options.encoding);
                 ^

Error: ENOENT: no such file or directory, scandir '/Volumes/data/content/data/projects/shop/www/wordpress-default/public_html/wp-content/themes/playground/vendor/composer/8f6bcb54/'
    at Error (native)
    at Object.fs.readdirSync (fs.js:952:18)
    at Gaze._addToWatched (/Volumes/data/content/data/projects/shop/www/wordpress-default/public_html/wp-content/themes/playground/development/node_modules/gulp/node_modules/gaze/lib/gaze.js:274:22)
    at Gaze._internalAdd (/Volumes/data/content/data/projects/shop/www/wordpress-default/public_html/wp-content/themes/playground/development/node_modules/gulp/node_modules/gaze/lib/gaze.js:191:10)
    at /Volumes/data/content/data/projects/shop/www/wordpress-default/public_html/wp-content/themes/playground/development/node_modules/gulp/node_modules/gaze/lib/gaze.js:400:16
    at Array.forEach (native)
    at /Volumes/data/content/data/projects/shop/www/wordpress-default/public_html/wp-content/themes/playground/development/node_modules/gulp/node_modules/gaze/lib/gaze.js:396:12
    at FSReqWrap.oncomplete (fs.js:123:15)

This can probably be fixed by excluding the /vendor/composer/* directories from the watch wildcard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions