[wp-trac] [WordPress Trac] #51960: `grunt copy:dynamic` doesn't copy all changed files

WordPress Trac noreply at wordpress.org
Mon Dec 7 23:43:00 UTC 2020


#51960: `grunt copy:dynamic` doesn't copy all changed files
------------------------------+-----------------------------
 Reporter:  iandunn           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 I run into this problem a lot:

 1. `npm run watch`
 1. Change several PHP files near-simultaneously. Examples:
  a. `git checkout {branch}`
  a. Change several files in PhpStorm, then hit `command+s` to save them
 all at once.
 1. Only some of the files are copied from `src/` to `build/`:

 {{{
 Running "_watch" task
 Completed in 0.737s at Mon Dec 07 2020 14:11:46 GMT-0800 (Pacific Standard
 Time) - Waiting...
 >> File "src/wp-includes/class-wp-simplepie-file.php" changed.
 >> File "src/wp-includes/SimplePie/File.php" changed.

 Running "clean:dynamic" (clean) task
 >> 0 paths cleaned.

 Running "copy:dynamic" (copy) task
 Copied 1 file
 }}}

 It doesn't happen all of the time, but it happens often, and makes testing
 changes very frustrating.


 ==== Workaround

 In the mean time, I've written
 [https://github.com/iandunn/dotfiles/blob/38b796b/bin/wp-develop-phpstorm-
 watcher.php a simple PhpStorm file watcher task].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51960>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list