Problem/Motivation

Whenever cache is cleared, this error is triggered.

In Container.php line 147:
Circular reference detected for service "file_system", path: "asset.css.collection_optimizer -> asset.css.dumper -> file_system -> logger.channel.file -> logger.factory -> config.factory -> high_contrast.overrider".

Steps to reproduce

Install latest version of module.
Clear cache with drush.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alemadlei created an issue.

alemadlei’s picture

I submitted a PR for this that works for me.

As an important note, this happens to me when I clear cache with Drush.

The patch removes the explicit dependency and uses code to load the service when needed.

alemadlei’s picture

As an additional note, this might be related to this
https://www.drupal.org/project/drupal/issues/3103620