{"action":"closed","issue":{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/1861","repository_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole","labels_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/1861/labels{/name}","comments_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/1861/comments","events_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/1861/events","html_url":"https://github.com/hechoendrupal/DrupalConsole/issues/1861","id":131087368,"number":1861,"title":"[generate:command] There are no commands defined in \"module\" namespace","user":{"login":"ericpugh","id":1176767,"avatar_url":"https://avatars.githubusercontent.com/u/1176767?v=3","gravatar_id":"","url":"https://api.github.com/users/ericpugh","html_url":"https://github.com/ericpugh","followers_url":"https://api.github.com/users/ericpugh/followers","following_url":"https://api.github.com/users/ericpugh/following{/other_user}","gists_url":"https://api.github.com/users/ericpugh/gists{/gist_id}","starred_url":"https://api.github.com/users/ericpugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericpugh/subscriptions","organizations_url":"https://api.github.com/users/ericpugh/orgs","repos_url":"https://api.github.com/users/ericpugh/repos","events_url":"https://api.github.com/users/ericpugh/events{/privacy}","received_events_url":"https://api.github.com/users/ericpugh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-03T16:59:05Z","updated_at":"2016-02-03T17:49:19Z","closed_at":"2016-02-03T17:49:18Z","body":"I'm having issues generating a custom command. I've tried on several different environments. To reproduce on a fresh install (Drupal 8.0.2 and Console 0.10.8):\r\nGenerate a \"mycmd\" module (**from Drupal root**) `drupal generate:module` with default options successfully creates module files:\r\n```\r\nGenerated or updated files\r\n Site path: /Users/epugh/Sites/devdesktop/ConsoleDev/\r\n 1 - modules/custom/mycmd/mycmd.info.yml\r\n 2 - modules/custom/mycmd/composer.json\r\n```\r\nCreate a custom Command `drupal generate:command` with default options, successfully creates the custom command class:\r\n```\r\nGenerated or updated files\r\n Site path: /Users/epugh/Sites/devdesktop/ConsoleDev/\r\n 1 - modules/custom/mycmd/src/Command/DefaultCommand.php\r\n```\r\n\r\nWhen I try to run the custom `drupal mycmd:default` command I get the following error:\r\n```\r\n[InvalidArgumentException]                               \r\n  There are no commands defined in the \"mycmd\" namespace. \r\n```\r\n\r\nHere is output of site status:\r\n```\r\nSystem Info\r\n Drupal                   8.0.2                                                                      \r\n Access to update.php     Protected                                                                  \r\n Configuration files      Protected                                                                  \r\n Cron maintenance tasks   Last run 1 minute 16 seconds ago                                           \r\n Database system          MySQL, MariaDB, Percona Server, or equivalent                              \r\n Database system version  5.5.44-37.3-log                                                            \r\n Database updates         Up to date                                                                 \r\n Entity/field definitions Up to date                                                                 \r\n File system              Writable (<em>public</em> download method)                                 \r\n GD library               bundled (2.1.0 compatible)                                                 \r\n GD library PNG support   bundled (2.1.0 compatible)                                                 \r\n Image toolkit            gd                                                                         \r\n Node Access Permissions  Disabled                                                                   \r\n PHP                      5.5.30 (<a href=\"/admin/reports/status/php\">more information</a>)          \r\n PHP extensions           Enabled                                                                    \r\n PHP memory limit         128M                                                                       \r\n PHP OPcode caching       Not enabled                                                                \r\n Search index progress    100% (0 remaining)                                                         \r\n Trusted Host Settings    Not enabled                                                                \r\n Twig C extension         Not available                                                              \r\n Unicode library          PHP Mbstring Extension                                                     \r\n Update notifications     Not enabled                                                                \r\n Upload progress          Not enabled                                                                \r\n Web server                                                                                          \r\n Drupal Console           0.10.8                                                                     \r\n\r\n Database connection\r\n Driver              mysql                                         \r\n Host                127.0.0.1                                     \r\n Database connection ConsoleDev                                    \r\n Port                33067                                         \r\n Username            drupaluser                                    \r\n Password                                                          \r\n Connection          mysql//drupaluser:@127.0.0.1:33067/ConsoleDev \r\n\r\n Themes\r\n theme_default bartik \r\n theme_admin   seven  \r\n\r\n Directories\r\n Site root directory      /Users/epugh/Sites/devdesktop/ConsoleDev/ \r\n Site temporary directory /tmp                                      \r\n Default theme directory  /core/themes/bartik                       \r\n Admin theme directory    /core/themes/seven                        \r\n\r\n```"}}