{"action":"created","issue":{"url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/245","labels_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/245/comments","events_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/245/events","html_url":"https://github.com/sensiolabs/SensioDistributionBundle/issues/245","id":119936056,"number":245,"title":"Could not open input file: app/console","user":{"login":"jpyzio","id":3425659,"avatar_url":"https://avatars.githubusercontent.com/u/3425659?v=3","gravatar_id":"","url":"https://api.github.com/users/jpyzio","html_url":"https://github.com/jpyzio","followers_url":"https://api.github.com/users/jpyzio/followers","following_url":"https://api.github.com/users/jpyzio/following{/other_user}","gists_url":"https://api.github.com/users/jpyzio/gists{/gist_id}","starred_url":"https://api.github.com/users/jpyzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpyzio/subscriptions","organizations_url":"https://api.github.com/users/jpyzio/orgs","repos_url":"https://api.github.com/users/jpyzio/repos","events_url":"https://api.github.com/users/jpyzio/events{/privacy}","received_events_url":"https://api.github.com/users/jpyzio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T12:59:59Z","updated_at":"2015-12-02T16:56:39Z","closed_at":"2015-12-02T16:47:53Z","body":"After \"git clone\" project (Symfony 3) and type \"composer install\".\r\n\r\n```\r\ncomposer install\r\nLoading composer repositories with package information\r\nInstalling dependencies (including require-dev) from lock file\r\n[...]\r\nGenerating autoload files\r\n> Incenteev\\ParameterHandler\\ScriptHandler::buildParameters\r\nCreating the \"app/config/parameters.yml\" file\r\nSome parameters are missing. Please provide them.\r\ndatabase_driver (pdo_sqlite): \r\n[...]\r\n> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap\r\n> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache\r\nCould not open input file: app/console\r\nScript Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception\r\n\r\n  [RuntimeException]                                                         \r\n  An error occurred when executing the \"'cache:clear --no-warmup'\" command:  \r\n  Could not open input file: app/console                                     \r\n  .                                                                          \r\n                                                                             \r\ninstall [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [packages1] ... [packagesN]\r\n```\r\nBecause in: vendor/sensio/distribution-bundle/Composer/ScriptHandler.php:464 function \"is_dir($options['symfony-var-dir'])\" returns false, because when  method \"clearCache\" is executed, directory \"var\" in project is not created yet and composer try execute app/console instead bin/console\r\n\r\nEDIT:\r\nThe problem is in symfony .gitignore file. It adds all the subdirectories with the \"var\" to ignore. After cloning the repository above method can not work properly."},"comment":{"url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/comments/161363460","html_url":"https://github.com/sensiolabs/SensioDistributionBundle/issues/245#issuecomment-161363460","issue_url":"https://api.github.com/repos/sensiolabs/SensioDistributionBundle/issues/245","id":161363460,"user":{"login":"stof","id":439401,"avatar_url":"https://avatars.githubusercontent.com/u/439401?v=3","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T16:56:39Z","updated_at":"2015-12-02T16:56:39Z","body":"symfony-standard has .gitkeep files ensuring that the folder exists. If your own project does not keep the folders, it might indeed break"}}