Closed (fixed)
Project:
Dotenv
Version:
1.1.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2023 at 13:59 UTC
Updated:
18 Jan 2023 at 16:04 UTC
Jump to comment: Most recent
When running any Drush command, the following error appears:
The command defined in "Symfony\Component\Dotenv\Command\DotenvDumpCommand" cannot have an empty name.
Make sure drupal/dotenv ^1.1 and symfony/dotenv ^6.0 are installed. Run any Drush command.
?
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dieterholvoet commentedTurns out that in the
dotenv:dumpSymfony Console command $defaultName and $defaultDescription is converted to an Use #[AsCommand] attribute in symfony/dotenv 6.2.0, which causes the name and description for this command to not be picked up anymore.I'm afraid we'll have to revert #3296179: Update symfony/dotenv to ^6.0 unless we can come up with a quick solution for this problem.
Comment #3
dieterholvoet commentedI just tested and this issue doesn't happen when using Drupal 10. Seems like we just can't use symfony/dotenv ^6.0 in combination with drupal/core 9.1.
Comment #5
dieterholvoet commentedComment #6
lukas.fischer commentedI just ran into this issue. I use Drupal 9.5 - and I just saw the box on the project page...
composer require drupal/dotenv:~1.0.0 --update-with-all-dependenciessolved the problem for me