{"action":"closed","issue":{"url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3041","repository_url":"https://api.github.com/repos/hechoendrupal/drupal-console","labels_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3041/labels{/name}","comments_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3041/comments","events_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/3041/events","html_url":"https://github.com/hechoendrupal/drupal-console/issues/3041","id":197480676,"number":3041,"title":"config:validate and generate:module have a parameter mismatch","user":{"login":"cburschka","id":1448001,"avatar_url":"https://avatars.githubusercontent.com/u/1448001?v=3","gravatar_id":"","url":"https://api.github.com/users/cburschka","html_url":"https://github.com/cburschka","followers_url":"https://api.github.com/users/cburschka/followers","following_url":"https://api.github.com/users/cburschka/following{/other_user}","gists_url":"https://api.github.com/users/cburschka/gists{/gist_id}","starred_url":"https://api.github.com/users/cburschka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cburschka/subscriptions","organizations_url":"https://api.github.com/users/cburschka/orgs","repos_url":"https://api.github.com/users/cburschka/repos","events_url":"https://api.github.com/users/cburschka/events{/privacy}","received_events_url":"https://api.github.com/users/cburschka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-24T23:14:16Z","updated_at":"2016-12-27T01:54:01Z","closed_at":"2016-12-27T01:54:01Z","body":"1.0.0-rc12 is installed (both core and console).\r\n\r\nI'm getting this exception:\r\n\r\n```\r\nArgumentCountError: Too few arguments to function Drupal\\Console\\Command\\Config\\ValidateCommand::__construct(), 0 passed and exactly 1 expected in vendor/drupal/console/src/Command/Config/ValidateCommand.php on line 30 #0 [internal function]: Drupal\\Console\\Command\\Config\\ValidateCommand->__construct()\r\n#1 vendor/symfony/dependency-injection/ContainerBuilder.php(927): ReflectionClass->newInstanceArgs(Array)\r\n#2 vendor/symfony/dependency-injection/ContainerBuilder.php(475): Symfony\\Component\\DependencyInjection\\ContainerBuilder->createService(Object(Symfony\\Component\\DependencyInjection\\Definition), 'console.config_...')\r\n#3 vendor/drupal/console/src/Application.php(150): Symfony\\Component\\DependencyInjection\\ContainerBuilder->get('console.config_...')\r\n#4 vendor/drupal/console/src/Application.php(39): Drupal\\Console\\Application->registerCommands()\r\n#5 vendor/symfony/console/Application.php(123): Drupal\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#6 vendor/drupal/console/bin/drupal.php(69): Symfony\\Component\\Console\\Application->run()\r\n#7 vendor/drupal/console/bin/drupal(4): require('...')\r\n#8 {main}\r\n```\r\n\r\nThe most likely cause seems to me to be that config:validate declares no arguments in yaml:\r\n\r\n    console.config_validate:\r\n      class: Drupal\\Console\\Command\\Config\\ValidateCommand\r\n      tags:\r\n        - { name: drupal.command }\r\n\r\nValidateCommand has a constructor that expects an untyped `$name` argument.\r\n\r\n```\r\nclass ValidateCommand extends Command\r\n{\r\n    use ContainerAwareCommandTrait;\r\n    use SchemaCheckTrait;\r\n    use PrintConfigValidationTrait;\r\n\r\n    public function __construct($name)\r\n    {\r\n        parent::__construct($name);\r\n    }\r\n```\r\n\r\n(The remaining packages are all at the versions installed by the composer.lock in Drupal 8.2.4)\r\n"}}
{"actor":{"display_login":"jmolivas"}}