Skip to content
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

Fix Not Working Drush 13 with Lando: AssertionError in DrushCommands.php when Running drush status #262

Open
Mohammad-Fayoumi opened this issue Oct 7, 2024 · 0 comments

Comments

@Mohammad-Fayoumi
Copy link
Contributor

I encountered an AssertionError when trying to run any drush command using Drush 13 in my Lando environment. The error message suggests that a custom logger should be added using $this->add() instead of replacing Drush's logger, with a reference to Drush PR #5022.

[error] AssertionError: Instead of using replacing Drush's logger, use $this->add() on DrushLoggerManager to add a custom logger. See https://github.com/drush-ops/drush/pull/5022 in assert() (line 76 of /app/vendor/drush/drush/src/Commands/DrushCommands.php) #0 /app/vendor/drush/drush/src/Commands/DrushCommands.php(76): assert(false, 'Instead of usin...')

Environment:

  • Drush 13.0
  • Lando environment
  • PHP version: 8.3
@Natshah Natshah changed the title Drush 13 Not Working with Lando: AssertionError in DrushCommands.php when Running drush status Fix Not Working Drush 13 with Lando: AssertionError in DrushCommands.php when Running drush status Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant