Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
asset library system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2023 at 04:51 UTC
Updated:
1 Feb 2026 at 21:16 UTC
Jump to comment: Most recent
Comments
Comment #2
chi commentedThat actually was already reported in https://www.drupal.org/project/drupal/issues/3301573#comment-15139595
Comment #3
chi commentedComment #4
acbramley commentedConfirmed on latest 11.x
Can reproduce off a clean install and then a cache clear as well.
In fact, it shows up during site install
Comment #6
acbramley commentedRun out of time to write tests but the fix seems pretty simple.
Comment #7
catchClosed #3374317: Aggregation sometimes tries to delete non-existing directories as duplicate. Agreed we can just check file_exists() here.
I think we should consider making ::deleteRecursive() stop logging a message though, so opened #3374319: FileSystem::deleteRecursive() shouldn't log a message when it tries to delete a non-existent directory.
Comment #8
acbramley commentedNot the most elegant test but it does what it needs to, couldn't find any existing test coverage of deleteAll().
Comment #9
chi commentedClosed #3374395: The file assets://css was not deleted because it does not exist. as duplicate.
Comment #10
chi commentedTypically such things are tested through a decorated logger that can stack logs for later. I wonder if Drupal has such a logger. There is
TestSystemLoggerChannelbut it covers a specific use case.Comment #11
indrapatil commented@chi This issue from yesterday I was facing in my system
$ vendor/bin/drush cr
[notice] The file assets://css was not deleted because it does not exist.
[notice] The file assets://js was not deleted because it does not exist.
[success] Cache rebuild complete.
The front end totally broke the css after that I tried disabling
Aggregate CSS files
Aggregate JavaScript files
Now the site is working but when I run the vendor/bin/drush cr
still exist errors.
[notice] The file assets://css was not deleted because it does not exist.
[notice] The file assets://js was not deleted because it does not exist.
Comment #12
catch#3374319: FileSystem::deleteRecursive() shouldn't log a message when it tries to delete a non-existent directory is RTBC, I think we might be OK there, so postponing this temporarily pending that one getting committed.
Comment #13
acbramley commentedRetested after #3374319: FileSystem::deleteRecursive() shouldn't log a message when it tries to delete a non-existent directory got in and we get the same result (no log) so we can close this now.