-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
[generate:module] with dependencies, Error: Call to undefined method Drupal\Console\Utils\Validator::trans() #3320
Comments
@pslcbs Can you try updating to latest RC20 and validate is this still happening. Make sure you update Launcher and Site installation. |
Hi @jmolivas, |
Closing this one. Feel free to re-open if still happening after updating to the latest version. |
I'm still experiencing this issue after updating to RC20.
Edit: FWIW I also rebuilt my cache ( |
@nvaken I saw the issue the problems is at https://github.com/hechoendrupal/drupal-console/blob/master/src/Utils/Validator.php#L280 We are trying to use This could be fixed by:
|
Fixed with #3334 |
Still getting this with the latest releases:
Backtrace:
|
@colans what is your site DrupalConsole version ? |
@jmolivas I believe I was using the latest. Sorry, but I don't have it installed anymore, and worked around this by adding the dependency manually (skipping that step when running the command). |
@colans is working now? |
No idea as I just used the workaround. |
got it |
Error message
PHP Fatal error: Call to undefined method Drupal\Console\Utils\Validator::trans() in /home/user/public_html/site/vendor/drupal/console/src/Utils/Validator.php on line 280
How to reproduce
I get that error only when:
Commenting the line where trans() method is called the command [generate:module] with dependencies is working again.
Thanks
The text was updated successfully, but these errors were encountered: