[WxT 10.2] Issues with WxT Extend Config module

Created on 26 March 2024, 9 months ago

Problem/Motivation

I wanted to experiment and enabled the WxT Extend Config module just to see what It does and when running drush wxt-cex I come across a few issues:

Steps to reproduce

- Install Wxt 10.2 latest DEV release.
- Enable module
- Run drush wxt-cex (it should export the config changes along with some edits on yml files), you should see the error above after that.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

5.2

Component

Code

Created by

🇨🇦Canada danrod Ottawa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @danrod
  • Status changed to Needs review 9 months ago
  • 🇨🇦Canada danrod Ottawa

    Attached a patch to make the drush wxt-cex command to work under WxT 5.2-dev, needs further testing.

  • Status changed to Needs work 9 months ago
  • 🇨🇦Canada sylus

    It would be awesome to get this to work again as was broken when drush removed some functionality we relied on.

    With the patch I still get errors so think still needs a bit of work but thanks so much for looking into it!

     [error]  Error: Call to a member function export() on null in Drupal\wxt_ext_config\Commands\Wxtcex->wxtConfigExport() (line 54 of /var/www/html/profiles/wxt/modules/custom/wxt_ext/wxt_ext_config/src/Commands/Wxtcex.php) #0 [internal function]: Drupal\wxt_ext_config\Commands\Wxtcex->wxtConfigExport(Array)
    #1 /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
    #2 /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #3 /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #4 /var/www/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #5 /var/www/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #6 /var/www/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #7 /var/www/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #8 /var/www/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #9 /var/www/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #10 /var/www/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
    #11 /var/www/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
    #12 /var/www/vendor/drush/drush/drush(4): require('/var/www/vendor...')
    #13 {main}. 
    Error: Call to a member function export() on null in /var/www/html/profiles/wxt/modules/custom/wxt_ext/wxt_ext_config/src/Commands/Wxtcex.php on line 54 #0 [internal function]: Drupal\wxt_ext_config\Commands\Wxtcex->wxtConfigExport(Array)
    #1 /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
    #2 /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #3 /var/www/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #4 /var/www/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(387): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    #5 /var/www/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #6 /var/www/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #7 /var/www/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #8 /var/www/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #9 /var/www/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #10 /var/www/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
    #11 /var/www/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
    #12 /var/www/vendor/drush/drush/drush(4): require('/var/www/vendor...')
    #13 {main}
    Error: Call to a member function export() on null in Drupal\wxt_ext_config\Commands\Wxtcex->wxtConfigExport() (line 54 of /var/www/html/profiles/wxt/modules/custom/wxt_ext/wxt_ext_config/src/Commands/Wxtcex.php).
     [warning] Drush command terminated abnormally.
    
  • Status changed to Active 4 months ago
  • 🇨🇦Canada optasy

    It seems like the module wxt_ext_config will be deleted in a future release: https://www.drupal.org/project/wxt/issues/3377173#comment-15167070

    Is this module really needed? The service "config.export.commands" is no longer implemented in Drush 12.x

  • 🇨🇦Canada optasy

    Attached a simple patch for deleting the wxt_ext_config module, which worked fine for the 5.2.x-dev branch, just in case you guys have decided to remove the module.

  • Status changed to Needs review 4 months ago
  • Status changed to Fixed about 2 months ago
  • 🇨🇦Canada sylus

    Agreed this is no longer needed and made an earlier uninstall hook to remove this so is good now to remove.

    Thanks @optasy!

    • sylus committed 316156fe on 5.3.x
      Issue #3436190 by OPTASY: [WxT 10.2] Issues with WxT Extend Config...
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024