[wp-trac] [WordPress Trac] #49275: Errors deleting plugins while using npm run dev
WordPress Trac
noreply at wordpress.org
Wed Jan 22 23:54:10 UTC 2020
#49275: Errors deleting plugins while using npm run dev
------------------------------+-----------------------------
Reporter: xkon | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
Not sure if this is something related to my setup only.
I'm usually working with `npm run dev` / `grunt watch --dev`.
Unfortunately, if testing/creating patches includes adding and removing
plugins/themes it seems that the process kinda breaks 😁.
Since `watch` is trying to keep track of everything inside /wp-content and
not only related core files Fatal Errors are popping up due to either
permission (not sure why as there shouldn't be a problem) or because files
had already been deleted by the Plugin uninstall action resulting in
pretty much a mess with folders not being able to be completely removed
and sometimes making the process hang there.
The only way that I've found out of it is to stop the process, manually
delete anything that is needed and get back to a default clean state of
wp-content and re-run `npm run dev` again.
Is there a way to maybe only "watch" the wp-content files that core has
and nothing else?
To test this, simply run `npm run dev` and then install & uninstall a
plugin via wp-admin ( or have it installed already then start npm run dev
and uninstall the plugin via wp-admin ).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49275>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list