{"action":"created","issue":{"url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/2838","repository_url":"https://api.github.com/repos/hechoendrupal/drupal-console","labels_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/2838/labels{/name}","comments_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/2838/comments","events_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/2838/events","html_url":"https://github.com/hechoendrupal/drupal-console/issues/2838","id":184566640,"number":2838,"title":"When installing Drupal console in a site, I get files called multiple times, causing errors","user":{"login":"jamesmcb","id":778372,"avatar_url":"https://avatars.githubusercontent.com/u/778372?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmcb","html_url":"https://github.com/jamesmcb","followers_url":"https://api.github.com/users/jamesmcb/followers","following_url":"https://api.github.com/users/jamesmcb/following{/other_user}","gists_url":"https://api.github.com/users/jamesmcb/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmcb/subscriptions","organizations_url":"https://api.github.com/users/jamesmcb/orgs","repos_url":"https://api.github.com/users/jamesmcb/repos","events_url":"https://api.github.com/users/jamesmcb/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmcb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-21T20:50:58Z","updated_at":"2017-01-13T20:06:53Z","closed_at":null,"body":"I installed the Drupal Console launcher (1.0.0-rc6) then installed it to my Drupal 8.2.1 site and then ran the 2 composer commands.   However when I try to execute \"drupal\" from my site root directory I get some errors (see below).  I surmise that the global drupal command is running and when it runs in vendor/bin/drupal, all the stuff has already been called from the first one.\n\nPHP Notice:  Constant DRUPAL_CONSOLE_CORE already defined in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php on line 3\nPHP Stack trace:\nPHP   1. {main}() /usr/local/bin/drupal:0\nPHP   2. require() /usr/local/bin/drupal:10\nPHP   3. require() phar:///usr/local/bin/drupal/bin/drupal:3\nPHP   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\nPHP   5. include_once() phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\nPHP   6. include_once() /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\nPHP   7. require() /Users/mcpuddin/Sites/b2/autoload.php:14\nPHP   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\nPHP   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\nPHP  10. require() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:54\nPHP  11. define() /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php:3\n\nNotice: Constant DRUPAL_CONSOLE_CORE already defined in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php on line 3\n\nCall Stack:\n    0.0002     225616   1. {main}() /usr/local/bin/drupal:0\n    0.0021     632208   2. require('phar:///usr/local/bin/drupal/bin/drupal') /usr/local/bin/drupal:10\n    0.0023     653640   3. require('phar:///usr/local/bin/drupal/bin/drupal.php') phar:///usr/local/bin/drupal/bin/drupal:3\n    0.2459    5493032   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\n    0.2463    5509232   5. include_once('/Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php') phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\n    0.2464    5510904   6. include_once('/Users/mcpuddin/Sites/b2/autoload.php') /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\n    0.2465    5512576   7. require('/Users/mcpuddin/Sites/b2/vendor/autoload.php') /Users/mcpuddin/Sites/b2/autoload.php:14\n    0.2466    5524208   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\n    0.2588    7344608   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\n    0.2588    7347232  10. require('/Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php') /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:54\n    0.2588    7347376  11. define() /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php:3\n\nPHP Notice:  Constant DRUPAL_CONSOLE_LAUNCHER already defined in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php on line 4\nPHP Stack trace:\nPHP   1. {main}() /usr/local/bin/drupal:0\nPHP   2. require() /usr/local/bin/drupal:10\nPHP   3. require() phar:///usr/local/bin/drupal/bin/drupal:3\nPHP   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\nPHP   5. include_once() phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\nPHP   6. include_once() /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\nPHP   7. require() /Users/mcpuddin/Sites/b2/autoload.php:14\nPHP   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\nPHP   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\nPHP  10. require() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:54\nPHP  11. define() /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php:4\n\nNotice: Constant DRUPAL_CONSOLE_LAUNCHER already defined in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php on line 4\n\nCall Stack:\n    0.0002     225616   1. {main}() /usr/local/bin/drupal:0\n    0.0021     632208   2. require('phar:///usr/local/bin/drupal/bin/drupal') /usr/local/bin/drupal:10\n    0.0023     653640   3. require('phar:///usr/local/bin/drupal/bin/drupal.php') phar:///usr/local/bin/drupal/bin/drupal:3\n    0.2459    5493032   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\n    0.2463    5509232   5. include_once('/Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php') phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\n    0.2464    5510904   6. include_once('/Users/mcpuddin/Sites/b2/autoload.php') /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\n    0.2465    5512576   7. require('/Users/mcpuddin/Sites/b2/vendor/autoload.php') /Users/mcpuddin/Sites/b2/autoload.php:14\n    0.2466    5524208   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\n    0.2588    7344608   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\n    0.2588    7347232  10. require('/Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php') /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:54\n    0.2593    7347640  11. define() /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php:4\n\nPHP Notice:  Constant DRUPAL_CONSOLE already defined in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php on line 5\nPHP Stack trace:\nPHP   1. {main}() /usr/local/bin/drupal:0\nPHP   2. require() /usr/local/bin/drupal:10\nPHP   3. require() phar:///usr/local/bin/drupal/bin/drupal:3\nPHP   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\nPHP   5. include_once() phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\nPHP   6. include_once() /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\nPHP   7. require() /Users/mcpuddin/Sites/b2/autoload.php:14\nPHP   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\nPHP   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\nPHP  10. require() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:54\nPHP  11. define() /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php:5\n\nNotice: Constant DRUPAL_CONSOLE already defined in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php on line 5\n\nCall Stack:\n    0.0002     225616   1. {main}() /usr/local/bin/drupal:0\n    0.0021     632208   2. require('phar:///usr/local/bin/drupal/bin/drupal') /usr/local/bin/drupal:10\n    0.0023     653640   3. require('phar:///usr/local/bin/drupal/bin/drupal.php') phar:///usr/local/bin/drupal/bin/drupal:3\n    0.2459    5493032   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\n    0.2463    5509232   5. include_once('/Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php') phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\n    0.2464    5510904   6. include_once('/Users/mcpuddin/Sites/b2/autoload.php') /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\n    0.2465    5512576   7. require('/Users/mcpuddin/Sites/b2/vendor/autoload.php') /Users/mcpuddin/Sites/b2/autoload.php:14\n    0.2466    5524208   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\n    0.2588    7344608   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\n    0.2588    7347232  10. require('/Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php') /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:54\n    0.2596    7347648  11. define() /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php:5\n\nPHP Notice:  Constant DRUPAL_CONSOLE_LANGUAGE already defined in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php on line 6\nPHP Stack trace:\nPHP   1. {main}() /usr/local/bin/drupal:0\nPHP   2. require() /usr/local/bin/drupal:10\nPHP   3. require() phar:///usr/local/bin/drupal/bin/drupal:3\nPHP   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\nPHP   5. include_once() phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\nPHP   6. include_once() /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\nPHP   7. require() /Users/mcpuddin/Sites/b2/autoload.php:14\nPHP   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\nPHP   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\nPHP  10. require() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:54\nPHP  11. define() /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php:6\n\nNotice: Constant DRUPAL_CONSOLE_LANGUAGE already defined in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php on line 6\n\nCall Stack:\n    0.0002     225616   1. {main}() /usr/local/bin/drupal:0\n    0.0021     632208   2. require('phar:///usr/local/bin/drupal/bin/drupal') /usr/local/bin/drupal:10\n    0.0023     653640   3. require('phar:///usr/local/bin/drupal/bin/drupal.php') phar:///usr/local/bin/drupal/bin/drupal:3\n    0.2459    5493032   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\n    0.2463    5509232   5. include_once('/Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php') phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\n    0.2464    5510904   6. include_once('/Users/mcpuddin/Sites/b2/autoload.php') /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\n    0.2465    5512576   7. require('/Users/mcpuddin/Sites/b2/vendor/autoload.php') /Users/mcpuddin/Sites/b2/autoload.php:14\n    0.2466    5524208   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\n    0.2588    7344608   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\n    0.2588    7347232  10. require('/Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php') /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:54\n    0.2599    7347632  11. define() /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/constants.php:6\n\nPHP Fatal error:  Cannot redeclare calculateRealPath() (previously declared in phar:///usr/local/bin/drupal/vendor/drupal/console-core/src/functions.php:7) in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/functions.php on line 18\nPHP Stack trace:\nPHP   1. {main}() /usr/local/bin/drupal:0\nPHP   2. require() /usr/local/bin/drupal:10\nPHP   3. require() phar:///usr/local/bin/drupal/bin/drupal:3\nPHP   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\nPHP   5. include_once() phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\nPHP   6. include_once() /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\nPHP   7. require() /Users/mcpuddin/Sites/b2/autoload.php:14\nPHP   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\nPHP   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\n\nFatal error: Cannot redeclare calculateRealPath() (previously declared in phar:///usr/local/bin/drupal/vendor/drupal/console-core/src/functions.php:7) in /Users/mcpuddin/Sites/b2/vendor/drupal/console-core/src/functions.php on line 18\n\nCall Stack:\n    0.0002     225616   1. {main}() /usr/local/bin/drupal:0\n    0.0021     632208   2. require('phar:///usr/local/bin/drupal/bin/drupal') /usr/local/bin/drupal:10\n    0.0023     653640   3. require('phar:///usr/local/bin/drupal/bin/drupal.php') phar:///usr/local/bin/drupal/bin/drupal:3\n    0.2459    5493032   4. Drupal\\Console\\Utils\\Launcher->launch() phar:///usr/local/bin/drupal/bin/drupal.php:64\n    0.2463    5509232   5. include_once('/Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php') phar:///usr/local/bin/drupal/src/Utils/Launcher.php:32\n    0.2464    5510904   6. include_once('/Users/mcpuddin/Sites/b2/autoload.php') /Users/mcpuddin/Sites/b2/vendor/drupal/console/bin/drupal.php:15\n    0.2465    5512576   7. require('/Users/mcpuddin/Sites/b2/vendor/autoload.php') /Users/mcpuddin/Sites/b2/autoload.php:14\n    0.2466    5524208   8. ComposerAutoloaderInitDrupal8::getLoader() /Users/mcpuddin/Sites/b2/vendor/autoload.php:7\n    0.2601    7345096   9. composerRequireDrupal8() /Users/mcpuddin/Sites/b2/vendor/composer/autoload_real.php:45\n"},"comment":{"url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/comments/272534927","html_url":"https://github.com/hechoendrupal/drupal-console/issues/2838#issuecomment-272534927","issue_url":"https://api.github.com/repos/hechoendrupal/drupal-console/issues/2838","id":272534927,"user":{"login":"adriangordon1231","id":7938253,"avatar_url":"https://avatars.githubusercontent.com/u/7938253?v=3","gravatar_id":"","url":"https://api.github.com/users/adriangordon1231","html_url":"https://github.com/adriangordon1231","followers_url":"https://api.github.com/users/adriangordon1231/followers","following_url":"https://api.github.com/users/adriangordon1231/following{/other_user}","gists_url":"https://api.github.com/users/adriangordon1231/gists{/gist_id}","starred_url":"https://api.github.com/users/adriangordon1231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriangordon1231/subscriptions","organizations_url":"https://api.github.com/users/adriangordon1231/orgs","repos_url":"https://api.github.com/users/adriangordon1231/repos","events_url":"https://api.github.com/users/adriangordon1231/events{/privacy}","received_events_url":"https://api.github.com/users/adriangordon1231/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T20:06:53Z","updated_at":"2017-01-13T20:06:53Z","body":"Any resolutions to this issue? "}}
{"actor":{"display_login":"adriangordon1231"}}