New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading from 11.0.0 to 11.0.3 causes: Error: Call to undefined method Drush\Log\DrushLoggerManager::setErrorStream() in Robo\Log\ResultPrinter->setOutput() (line 27 of [...]\vendor\consolidation\robo\src\Log\ResultPrinter.php) #5042
Comments
Ping @greg-1-anderson |
Looks like some upstream work is needed to support these Robo commands again https://drupal.slack.com/archives/C62H9CWQM/p1643068478123200 |
I appreciate it! |
Planning on doing this, but haven't been able to yet. |
No rush; it's just good to know it's on your radar and I can keep using 11.0.0 for now until it's fixed. |
I released consolidation/log 2.1.0 to address this. I haven't updated Robo yet, but if Drush updated to the latest consolidation/log (or if you just updated the dependencies of your site), it might work just with this much change. Haven't tried, though. |
The full fix, though, is for Drush to increase the minimum required version of Robo to the one that has the fix / tests, once it becomes available. |
Awesome, will try and test this when I get a chance. |
Finally got around to testing this, and consolidation/log 2.1.0 does indeed seem to fix it for me. |
Thanks for checking. Folks who need this should make sure they have latest consolidation/log. log isn't a direct dependency of drush so nothing more to do here. |
drush-ops/drush#5042 - Removing grasmash/yaml-expander (1.4.0) - Upgrading consolidation/log (2.0.4 => 2.1.0) - Upgrading consolidation/self-update (2.0.3 => 2.0.5) - Upgrading drush/drush (11.0.0 => 11.0.5)
Describe the bug
Looks like there's an issue potentially introduced as a side effect of #5022
This occurs on both Windows 10 (local dev) and a remote Linux server (Debian I think) running PHP 8.1, Drupal 9.3.3, and Drush 11.0.3:
To Reproduce
Run a custom command that uses Robo it seems.
Expected behavior
Not have a horrible error. :P
Actual behavior
See error.
Workaround
Downgrade to Drush 11.0.0
System Configuration
Additional information
Custom commands that seem to trigger the error:
https://github.com/Ambient-Impact/drupal-modules/blob/4.x/ambientimpact_core/src/Commands/InstallCommand.php
https://github.com/Ambient-Impact/drupal-modules/blob/4.x/ambientimpact_core/src/Commands/RsyncCommand.php
The text was updated successfully, but these errors were encountered: