On drupal 9 when run drush csim or drush csim dev we have error:

Too few arguments to function Drupal\Core\Config\ConfigImporter::__construct(), 9 passed in /var/www/web/modules/contrib/config_split/src/ConfigSplitCliService.php on line 355 and exactly 10 expected in /var/www/web/core/lib/Drupal/Core/Config/ConfigImporter.php on line 194

Command drush cim also not imported active config.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Skymen created an issue. See original summary.

bircher’s picture

ptmkenny’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, this fixed the issue for me.

Drush cache must be cleared after applying the patch.

Skymen’s picture

@bircher Thanks. Error is gone.
But commands drush cim, drush csim, drush cex, drush csex don't include active split config. Only direct call with name of split (e.x. drush csim dev) works as needed. Maybe this bug related to https://www.drupal.org/project/config_split/issues/3034589 or https://www.drupal.org/project/config_split/issues/3003108

P.S. I use drupal 9.0 drush 10.2.2 config_split 1.5-rc1

  • bircher committed dbf481a on 8.x-1.x
    Issue #3135074 by bircher: Too few arguments to function Drupal\Core\...
bircher’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

albertski’s picture

@Skymen are you still having the issue that you can't call drush csim without having to put the name (Ex drush csim dev)? I'm running into that right now with Drush 10.3.1 with Drupal 9.0.2.

Skymen’s picture

@albertski Now all works fine for me on latest versions of Drupal, drush, config_split. drush cex exports default configs and config_split configs for current environment.