Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install blt in existing project due to Class 'Symfony\Component\Debug\Exception\FatalThrowableError' not found #2378

Closed
derhasi opened this issue Dec 15, 2017 · 5 comments
Labels
Bug Something isn't working Support A support request

Comments

@derhasi
Copy link

derhasi commented Dec 15, 2017

I wanted to add blt in a project I currently develop locally based on drupal-composer/drupal-project and opensocial. When trying to add blt via instructions from the documentation this fails.

My composer.json right now:

{
    "name": "derhasi/kartslalom",
    "description": "Kartslalom.org project",
    "type": "project",
    "license": "GPL-2.0+",
    "authors": [
        {
            "name": "Johannes Haseitl",
            "role": ""
        }
    ],
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ],
    "require": {
        "acquia/blt": "^8.3",
        "composer/installers": "^1.0.20",
        "cweagans/composer-patches": "~1.0",
        "drupal-composer/drupal-scaffold": "^2.0.1",
        "drupal/address": "~1.0",
        "drupal/config_installer": "1.*",
        "drupal/core": "~8.0",
        "drupal/csv_serialization": "^1.0",
        "drupal/eva": "^1.2",
        "drupal/migrate_plus": "*",
        "drupal/migrate_tools": "*",
        "drupal/migrate_upgrade": "*",
        "drupal/pathauto": "^1.0",
        "drupal/redirect": "^1.0@beta",
        "drush/drush": "8.*",
        "goalgorilla/open_social": "^1.8.0",
        "league/csv": ">=7.1",
        "neitanod/forceutf8": "~2.0"
    },
    "require-dev": {
        "drupal/console": "^1.3.1",
        "drupal/devel": "^1.0@RC"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "autoload": {
        "classmap": [
            "scripts/composer/ScriptHandler.php"
        ]
    },
    "scripts": {
        "drupal:scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
        "post-install-cmd": [
            "DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
        ],
        "post-update-cmd": [
            "DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
        ],
        "site:install": [
            "chmod 777 docroot/sites/default docroot/sites/default/settings.php",
            "./vendor/bin/drush site-install config_installer --root=./web --yes"
        ],
        "site:update": [
            "./vendor/bin/drush updatedb --root=./web",
            "./vendor/bin/drush config-import --root=./web --yes"
        ]
    },
    "extra": {
        "installer-types": [
            "bower-asset",
            "npm-asset"
        ],
        "installer-paths": {
            "docroot/core": [
                "type:drupal-core"
            ],
            "docroot/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "docroot/profiles/contrib/social": [
                "goalgorilla/open_social"
            ],
            "docroot/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "docroot/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "docroot/libraries/{$name}": [
                "type:drupal-library",
                "type:bower-asset",
                "type:npm-asset"
            ],
            "drush/contrib/{$name}": [
                "type:drupal-drush"
            ]
        },
        "enable-patching": true
    },
    "config": {
        "sort-packages": true
    }
}

My system information:

  • Operating system type: macOS High Sierra
  • Operating system version: 10.13.2
  • BLT version: 8.9

Output of blt doctor:

You must run this command from within a BLT-generated project repository.

When I run this command:

composer require acquia/blt:^8.3 --no-update
composer update

I get the following output:

kartslalom|22-implement-acquia-blt⚡ ⇒ composer update
    1/1:	https://packages.drupal.org/8/drupal/provider-2017-4$6b0234fc4cedbc50a2bc5154ca634d4b6561b2d88b5747946e8a57adf06c800e.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1
    1/4:	http://packagist.org/p/provider-latest$64050d61079ba24c3011291e61cffba0ef2fed09dfb75c3cc9f707d98585ecb6.json
    2/4:	http://packagist.org/p/provider-2017-10$5e2b1c57c29fab2c3c9a6d9b96df9d65c3665acca080792698164d2d450e96ff.json
    3/4:	http://packagist.org/p/provider-2016$25719618ee282f9fa0db19d60769bc99d393f9158778c6b6afdf3851913119ef.json
    4/4:	http://packagist.org/p/provider-2017-07$b9e109bd6c9bea8d2769535f614d7b35f6fd9ffb1d2aee33a98de64a3e2e6991.json
    Finished: success: 4, skipped: 0, failure: 0, total: 4
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 194 installs, 0 updates, 0 removals
  - Installing composer/installers (v1.4.0): Loading from cache
  - Installing cweagans/composer-patches (1.6.4): Loading from cache
No patches supplied.
Gathering patches for dependencies. This might take a minute.
  - Installing wikimedia/composer-merge-plugin (v1.4.1): Loading from cache
  - Installing grasmash/drupal-security-warning (1.1.1): Loading from cache
  - Installing twig/twig (v1.35.0): Loading from cache
  - Installing symfony/yaml (v3.2.14): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.6.0): Loading from cache
  - Installing symfony/process (v3.2.14): Loading from cache
  - Installing symfony/event-dispatcher (v3.2.14): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v3.4.2): Loading from cache
  - Installing symfony/console (v3.2.14): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing doctrine/inflector (v1.1.0): Loading from cache
  - Installing doctrine/collections (v1.5.0): Loading from cache
  - Installing doctrine/cache (v1.7.1): Loading from cache
  - Installing doctrine/annotations (v1.6.0): Loading from cache
  - Installing doctrine/common (v2.8.1): Loading from cache
  - Installing composer/semver (1.4.2): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing sebastian/version (1.0.6): Loading from cache
  - Installing sebastian/recursion-context (1.0.5): Loading from cache
  - Installing sebastian/global-state (1.1.1): Loading from cache
  - Installing sebastian/exporter (1.2.2): Loading from cache
  - Installing sebastian/environment (1.3.8): Loading from cache
  - Installing sebastian/diff (1.4.3): Loading from cache
  - Installing sebastian/comparator (1.2.4): Loading from cache
  - Installing doctrine/instantiator (1.1.0): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/phpunit-mock-objects (2.3.8): Loading from cache
  - Installing phpunit/php-timer (1.0.9): Loading from cache
  - Installing phpunit/php-token-stream (1.4.12): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.5): Loading from cache
  - Installing phpunit/php-code-coverage (2.2.4): Loading from cache
  - Installing webmozart/assert (1.2.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (2.0.5): Loading from cache
  - Installing phpspec/prophecy (1.7.3): Loading from cache
  - Installing oomphinc/composer-installers-extender (v1.1.2): Loading from cache
  - Installing drupal-composer/drupal-scaffold (2.4.0): Loading from cache
  - Installing jakub-onderka/php-console-color (0.1): Loading from cache
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cache
  - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
  - Installing nikic/php-parser (v3.1.2): Loading from cache
  - Installing symfony/var-dumper (v3.4.2): Loading from cache
  - Installing psy/psysh (v0.8.16): Loading from cache
  - Installing symfony/finder (v3.4.2): Loading from cache
  - Installing drupal/console-extend-plugin (0.9.2): Loading from cache
  - Installing webmozart/path-util (2.3.0): Loading from cache
  - Installing symfony/filesystem (v3.4.2): Loading from cache
  - Installing dflydev/dot-access-data (v1.1.0): Loading from cache
  - Installing tivie/php-os-detector (1.1.0): Loading from cache
  - Installing squizlabs/php_codesniffer (2.9.1): Loading from cache
  - Installing phpunit/phpunit (4.8.36): Loading from cache
  - Installing grasmash/yaml-expander (1.3.0): Loading from cache
  - Installing grasmash/yaml-cli (1.0.3): Loading from cache
  - Installing pear/console_table (v1.3.0): Loading from cache
  - Installing consolidation/output-formatters (3.1.13): Loading from cache
  - Installing consolidation/annotated-command (2.8.2): Loading from cache
  - Installing container-interop/container-interop (1.2.0): Loading from cache
  - Installing league/container (2.4.1): Loading from cache
  - Installing consolidation/log (1.0.5): Loading from cache
  - Installing consolidation/config (1.0.7): Loading from cache
  - Installing consolidation/robo (1.2.0): Loading from cache
  - Installing drush/drush (8.1.15): Loading from cache
  - Installing drupal/coder (8.2.12): Cloning 984c54a7b1 from cache
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.4.4): Loading from cache
  - Installing asm89/twig-lint (1.0.2): Loading from cache
  - Installing acquia/blt (8.9.11): Loading from cache
  - Installing zendframework/zend-stdlib (3.1.0): Loading from cache
  - Installing zendframework/zend-escaper (2.5.2): Loading from cache
  - Installing zendframework/zend-feed (2.9.0): Loading from cache
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing zendframework/zend-diactoros (1.6.1): Loading from cache
  - Installing symfony/translation (v3.2.14): Loading from cache
  - Installing symfony/validator (v3.2.14): Loading from cache
  - Installing symfony/serializer (v3.2.14): Loading from cache
  - Installing symfony/routing (v3.2.14): Loading from cache
  - Installing paragonie/random_compat (v2.0.11): Loading from cache
  - Installing symfony/http-foundation (v3.2.14): Loading from cache
  - Installing symfony/psr-http-message-bridge (v1.0.1): Loading from cache
  - Installing symfony/polyfill-iconv (v1.6.0): Loading from cache
  - Installing symfony/http-kernel (v3.2.14): Loading from cache
  - Installing symfony/dependency-injection (v3.2.14): Loading from cache
  - Installing symfony/class-loader (v3.2.14): Loading from cache
  - Installing symfony-cmf/routing (1.4.1): Loading from cache
  - Installing stack/builder (v1.0.5): Loading from cache
  - Installing masterminds/html5 (2.3.0): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing guzzlehttp/promises (v1.3.1): Loading from cache
  - Installing guzzlehttp/guzzle (6.3.0): Loading from cache
  - Installing egulias/email-validator (1.2.14): Loading from cache
  - Installing easyrdf/easyrdf (0.9.1): Loading from cache
  - Installing asm89/stack-cors (1.1.0): Loading from cache
  - Installing drupal/core (8.4.3): Loading from cache
  - Applying patches for drupal/core
    https://www.drupal.org/files/issues/color-optional-html-preview-2844190-2.patch (Color module html preview optional)
    https://www.drupal.org/files/issues/image_restrict_image_styles-2528214-19.patch (Restrict images to this site blocks image style derivatives)

  - Installing symfony/dom-crawler (v3.4.2): Loading from cache
  - Installing symfony/css-selector (v3.4.2): Loading from cache
  - Installing drupal/redirect (1.0.0-beta1): Loading from cache
  - Installing swiftmailer/swiftmailer (v5.4.8): Loading from cache
  - Installing clue/stream-filter (v1.4.0): Loading from cache
  - Installing php-http/message-factory (v1.0.2): Loading from cache
  - Installing php-http/message (1.6.0): Loading from cache
  - Installing php-http/discovery (1.3.0): Loading from cache
  - Installing php-http/promise (v1.0.0): Loading from cache
  - Installing php-http/httplug (v1.1.0): Loading from cache
  - Installing php-http/curl-client (v1.7.0): Loading from cache
  - Installing npm-asset/jquery.caret (0.3.1): Loading from cache
  - Installing npm-asset/diff (3.4.0): Loading from cache
  - Installing league/csv (7.2.0): Loading from cache
  - Installing happyr/linkedin-api-client (1.0.0): Loading from cache
  - Installing phpseclib/phpseclib (2.0.9): Loading from cache
  - Installing monolog/monolog (1.23.0): Loading from cache
  - Installing firebase/php-jwt (v5.0.0): Loading from cache
  - Installing google/apiclient-services (v0.38): Loading from cache
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing google/auth (v1.2.0): Loading from cache
  - Installing google/apiclient (v2.2.1): Loading from cache
  - Installing facebook/graph-sdk (5.6.1): Loading from cache
  - Installing embed/embed (v2.7.7): Loading from cache
  - Installing drupal/votingapi (3.0.0-alpha2): Loading from cache
  - Installing drupal/views_infinite_scroll (1.5.0): Loading from cache
  - Installing drupal/embed (1.0.0): Loading from cache
  - Installing drupal/url_embed (1.0.0-alpha1): Loading from cache
  - Applying patches for drupal/url_embed
    https://www.drupal.org/files/issues/url_embed_WSOD_convert_url_to_embed-2871744-5.patch (WSOD if wrong url or network unavailable)
    https://www.drupal.org/files/issues/caching_layer_url_embed_2867668-14.patch (Improve performance for embeds)

  - Installing drupal/token (1.0.0): Loading from cache
  - Installing html2text/html2text (4.0.1): Loading from cache
  - Installing drupal/mailsystem (4.1.0): Loading from cache
  - Installing drupal/swiftmailer (1.0.0-beta1): Loading from cache
  - Installing drupal/social_api (1.1.0): Loading from cache
  - Installing drupal/social_auth (1.0.0): Loading from cache
  - Installing drupal/search_api (1.5.0): Loading from cache
  - Installing drupal/r4032login (dev-1.x 391f10d): Cloning 391f10d69b from cache
  - Installing drupal/entity (1.0.0-beta1): Loading from cache
  - Installing drupal/profile (1.0.0-rc1): Loading from cache
  - Installing drupal/private_message (1.0.0-beta18): Loading from cache
  - Applying patches for drupal/private_message
    https://www.drupal.org/files/issues/2910537-2.patch (Email notification settings are not taken into account)

  - Installing drupal/override_node_options (2.3.0): Loading from cache
  - Installing drupal/message (1.0.0-rc1): Loading from cache
  - Installing drupal/link_css (dev-1.x 2e53337): Cloning 2e53337457 from cache
  - Installing drupal/like_and_dislike (1.0.0-alpha2): Loading from cache
  - Applying patches for drupal/like_and_dislike
    https://www.drupal.org/files/issues/2848080-2-preview-fails-on-node.patch (Fix preview on node)

  - Installing drupal/crop (1.3.0): Loading from cache
  - Installing drupal/image_widget_crop (2.1.0): Loading from cache
  - Installing drupal/image_effects (1.0.0): Loading from cache
  - Installing drupal/group (1.0.0-rc1): Loading from cache
  - Applying patches for drupal/group
    https://www.drupal.org/files/issues/group-crash_when_clicking-2908830-2.patch (Crash when clicking delete on any group content)
    https://www.drupal.org/files/issues/add-computed-field-without-FieldItemListComputedInterface-2718195-34.patch (Add computed field for Group reference)

  - Installing drupal/flag (4.0.0-alpha2): Loading from cache
  - Applying patches for drupal/flag
    https://www.drupal.org/files/issues/2723703_31.patch (Add relationship to flagged entities when Flagging is base table)

  - Installing drupal/field_group (3.0.0-beta1): Loading from cache
  - Installing drupal/config_update (1.5.0): Loading from cache
  - Installing drupal/features (3.5.0): Loading from cache
  - Installing drupal/dynamic_entity_reference (1.4.0): Loading from cache
  - Installing drupal/devel (1.2.0): Loading from cache
  - Installing drupal/csv_serialization (1.0.0): Loading from cache
  - Installing drupal/bootstrap (3.7.0): Loading from cache
  - Installing drupal/admin_toolbar (1.21.0): Loading from cache
  - Installing drupal/addtoany (1.8.0): Loading from cache
  - Installing commerceguys/enum (v1.0): Loading from cache
  - Installing commerceguys/addressing (v1.0.0-beta3): Loading from cache
  - Installing commerceguys/intl (v0.7.4): Loading from cache
  - Installing drupal/address (1.3.0): Loading from cache
  - Installing bower-asset/waves (v0.7.5): Loading from cache
  - Installing bower-asset/jquery (3.2.1): Loading from cache
  - Installing bower-asset/timepicker (1.11.4): Loading from cache
  - Installing bower-asset/respond (1.4.2): Loading from cache
  - Installing bower-asset/tablesaw (v2.0.3): Loading from cache
  - Installing bower-asset/select2 (4.0.3): Loading from cache
  - Installing bower-asset/eve-raphael (v0.5.0): Loading from cache
  - Installing bower-asset/raphael (v2.2.7): Loading from cache
  - Installing bower-asset/mocha (1.17.1): Loading from cache
  - Installing bower-asset/morris.js (0.5.1): Loading from cache
  - Installing bower-asset/highlight (9.7.0): Loading from cache
  - Installing bower-asset/d3 (v3.5.17): Loading from cache
  - Installing bower-asset/bootstrap (v3.3.7): Loading from cache
  - Installing bower-asset/autosize (4.0.0): Loading from cache
  - Installing abraham/twitteroauth (0.7.4): Loading from cache
  - Installing goalgorilla/open_social (1.8.0): Loading from cache
  - Installing psr/simple-cache (1.0.0): Loading from cache
  - Installing symfony/cache (v4.0.2): Loading from cache
  - Installing symfony/expression-language (v3.4.2): Loading from cache
  - Installing gabordemooij/redbean (v4.3.4): Loading from cache
  - Installing vlucas/phpdotenv (v2.4.0): Loading from cache
  - Installing drupal/console-dotenv (0.3.0): Loading from cache
  - Installing webflo/drupal-finder (1.1.0): Loading from cache
  - Installing symfony/config (v3.2.14): Loading from cache
  - Installing stecman/symfony-console-completion (0.7.0): Loading from cache
  - Installing drupal/console-en (1.3.1): Loading from cache
  - Installing dflydev/placeholder-resolver (v1.0.2): Loading from cache
  - Installing dflydev/dot-access-configuration (v1.0.2): Loading from cache
  - Installing drupal/console-core (1.3.1): Loading from cache
  - Installing alchemy/zippy (0.4.3): Loading from cache
  - Installing drupal/console (1.3.1): Loading from cache
  - Installing drupal/config_installer (1.5.0): Loading from cache
  - Installing drupal/eva (1.2.0): Loading from cache
  - Installing drupal/migrate_plus (4.0.0-beta2): Loading from cache
  - Installing drupal/migrate_tools (4.0.0-beta2): Loading from cache
  - Installing drupal/migrate_upgrade (3.0.0-rc3): Loading from cache
  - Installing drupal/ctools (3.0.0): Loading from cache
  - Installing drupal/pathauto (1.0.0): Loading from cache
  - Installing neitanod/forceutf8 (v2.0.1): Loading from cache
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
symfony/var-dumper suggests installing ext-symfony_debug ()
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
consolidation/robo suggests installing pear/archive_tar (Allows tar archives to be created and extracted in taskPack and taskExtract, respectively.)
consolidation/robo suggests installing henrikbjorn/lurker (For monitoring filesystem changes in taskWatch)
consolidation/robo suggests installing patchwork/jsqueeze (For minifying JS files in taskMinify)
consolidation/robo suggests installing natxet/CssMin (For minifying CSS files in taskMinify)
drush/drush suggests installing ext-pcntl (*)
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
dealerdirect/phpcodesniffer-composer-installer suggests installing dealerdirect/qa-tools (All the PHP QA tools you'll need)
acquia/blt suggests installing hirak/prestissimo (^0.3)
acquia/blt suggests installing typhonius/acquia_cli (^0.0.7)
zendframework/zend-feed suggests installing zendframework/zend-cache (Zend\Cache component, for optionally caching feeds between requests)
zendframework/zend-feed suggests installing zendframework/zend-db (Zend\Db component, for use with PubSubHubbub)
zendframework/zend-feed suggests installing zendframework/zend-http (Zend\Http for PubSubHubbub, and optionally for use with Zend\Feed\Reader)
zendframework/zend-feed suggests installing zendframework/zend-servicemanager (Zend\ServiceManager component, for easily extending ExtensionManager implementations)
zendframework/zend-feed suggests installing zendframework/zend-validator (Zend\Validator component, for validating email addresses used in Atom feeds and entries when using the Writer subcomponent)
symfony/validator suggests installing symfony/intl ()
symfony/serializer suggests installing symfony/property-info (To deserialize relations.)
symfony/serializer suggests installing symfony/property-access (For using the ObjectNormalizer.)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
easyrdf/easyrdf suggests installing ml/json-ld (~1.0)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
phpseclib/phpseclib suggests installing ext-libsodium (SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.)
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
google/apiclient suggests installing cache/filesystem-adapter (For caching certs and tokens (using Google_Client::setCache))
embed/embed suggests installing guzzlehttp/[email protected] (To use Guzzle5 request resolver)
commerceguys/addressing suggests installing symfony/intl (to use it as the source of country data)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter with Guzzle 3)
drupal/migrate_plus suggests installing sainsburys/guzzle-oauth2-plugin (3.0 required for the OAuth2 authentication plugin)
Writing lock file
Generating autoload files
    1/1:	http://packagist.org/p/provider-latest$a9f3338c4fcf88cdf2f8abd8240b900ee1d1544895fce334ae8515aee0c9c948.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1
Warning: The value for extras.installer-paths in composer.json differs from BLT's recommended values.
See https://github.com/acquia/blt/blob/8.x/template/composer.json
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
Creating packages services cache file:
/Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/drupal/console/extend.console.uninstall.services.yml
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer/
> DrupalProject\composer\ScriptHandler::createRequiredFiles
You are using Drupal packages that are not supported by the Drupal Security Team!
  - drupal/redirect:1.0.0.0-beta1: Project has not opted into security advisory coverage!
  - drupal/votingapi:3.0.0.0-alpha2: Alpha releases are not covered by Drupal security advisories.
  - drupal/url_embed:1.0.0.0-alpha1: Alpha releases are not covered by Drupal security advisories.
  - drupal/swiftmailer:1.0.0.0-beta1: Beta releases are not covered by Drupal security advisories.
  - drupal/r4032login:dev-1.x: Dev releases are not covered by Drupal security advisories.
  - drupal/entity:1.0.0.0-beta1: Beta releases are not covered by Drupal security advisories.
  - drupal/profile:1.0.0.0-RC1: RC releases are not covered by Drupal security advisories.
  - drupal/private_message:1.0.0.0-beta18: Project has not opted into security advisory coverage!
  - drupal/message:1.0.0.0-RC1: RC releases are not covered by Drupal security advisories.
  - drupal/link_css:dev-1.x: Dev releases are not covered by Drupal security advisories.
  - drupal/like_and_dislike:1.0.0.0-alpha2: Alpha releases are not covered by Drupal security advisories.
  - drupal/group:1.0.0.0-RC1: RC releases are not covered by Drupal security advisories.
  - drupal/flag:4.0.0.0-alpha2: Alpha releases are not covered by Drupal security advisories.
  - drupal/field_group:3.0.0.0-beta1: Beta releases are not covered by Drupal security advisories.
  - drupal/migrate_plus:4.0.0.0-beta2: Beta releases are not covered by Drupal security advisories.
  - drupal/migrate_tools:4.0.0.0-beta2: Beta releases are not covered by Drupal security advisories.
  - drupal/migrate_upgrade:3.0.0.0-RC3: RC releases are not covered by Drupal security advisories.
See https://www.drupal.org/security-advisory-policy for more information.
Removing packages services cache file:
/Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/drupal/console/extend.console.uninstall.services.yml
Creating packages services cache file:
/Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/drupal/console/extend.console.uninstall.services.yml
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer/
Creating BLT templated files...
 > /Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/acquia/blt/bin/blt internal:add-to-project --ansi -y
Installing new Composer dependencies provided by BLT. This make take a while...

Fatal error: Uncaught Error: Class 'Symfony\Component\Debug\Exception\FatalThrowableError' not found in /Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/symfony/console/Application.php:129
Stack trace:
#0 /Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/consolidation/robo/src/Runner.php(175): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/acquia/blt/src/Robo/Blt.php(235): Robo\Runner->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), Object(Acquia\Blt\Robo\Application), Array)
#2 /Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/acquia/blt/bin/blt-robo-run.php(42): Acquia\Blt\Robo\Blt->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/acquia/blt/bin/blt-robo.php(14) in /Users/derhasi/Work/privat/kart/pages/kartslalom/vendor/symfony/console/Application.php on line 129
> DrupalProject\composer\ScriptHandler::createRequiredFiles

And I expected this to happen: blt installed via composer 😉

@danepowell
Copy link
Contributor

danepowell commented Dec 16, 2017

It's pretty tricky to debug adding BLT to existing projects, because your existing project could have just about anything going on to conflict with BLT's project template. You might have to dig into this yourself and see why that class can't be found.

One suspicious item is this section in your composer.json:

"autoload": {
  "classmap": [
    "scripts/composer/ScriptHandler.php"
  ]
},

If that's messing with Composer's autoloading, it seems like that could prevent it from finding this library.

Consolidation/Robo just had a new release a day or two ago, it's possible that's related, although I think it would show up in our tests.

@danepowell danepowell added 8.9.x Support A support request labels Dec 16, 2017
@derhasi
Copy link
Author

derhasi commented Dec 16, 2017

The error strangely occurs even on a totally empty project, and even with blt 9.

Composer version 1.5.5 2017-12-01 14:42:57

composer.json:

{
    "name": "derhasi/blttest",
    "type": "project",
    "authors": [
        {
            "name": "Johannes Haseitl",
            "email": "[email protected]"
        }
    ],
    "minimum-stability": "dev",
    "require": {
        "acquia/blt": "9.*"
    }
}

When executing composer install on this :

composer install
    1/9:	http://packagist.org/p/provider-archived$3f9b10f104d1fdd5a1af7ffd39e6a06505dd4483f0d97db12f08f70a1ed8ef07.json
    2/9:	http://packagist.org/p/provider-2017-01$b848821b8b5825997b7802208246c9a2dac34c56c424fca997db18635b315da6.json
    3/9:	http://packagist.org/p/provider-2017-04$dc3f78cc1f34d7d0a13cead8b626f04dc5d6955e8fc3002a0c2f8eea2298c629.json
    4/9:	http://packagist.org/p/provider-2017-10$03f93d4983f3f3720a1d6f60fd585d4d507970de66ef857626aa35b7d46f3ff0.json
    5/9:	http://packagist.org/p/provider-2017-07$eb9c9963f348a0d2c213f1e23d565e5b6fe3ddf20e66b0c6a4a90ac93356d4e1.json
    6/9:	http://packagist.org/p/provider-2014$37a3b22015c096726a0c88f7870a2ed8c3a44e98554ef7342fa41ca522898b3e.json
    7/9:	http://packagist.org/p/provider-latest$e170ba70505b6819fe889effa0e95a30d439bc489f9269ece9796980b605cddf.json
    8/9:	http://packagist.org/p/provider-2015$56fd037c685480d8f615a281c3bfaea68aa4f7d4d8f5f3668e6b6c11076308f2.json
    9/9:	http://packagist.org/p/provider-2016$6eefe44890714a17bd7c9ef40d82d5addf44575ccce3c33c21617dfa9f39ed06.json
    Finished: success: 9, skipped: 0, failure: 0, total: 9
Loading composer repositories with package information
Updating dependencies (including require-dev)
    1/1:	https://codeload.github.com/drush-ops/drush/legacy.zip/a88465871fda2bc732329e47886bda97c8a5b570
    Finished: success: 1, skipped: 0, failure: 0, total: 1
Package operations: 70 installs, 0 updates, 0 removals
  - Installing wikimedia/composer-merge-plugin (v1.4.1): Loading from cache
  - Installing composer/installers (v1.4.0): Loading from cache
  - Installing grasmash/drupal-security-warning (dev-master 59ff99a): Cloning 59ff99aed7 from cache
  - Installing cweagans/composer-patches (1.x-dev 9504fbd): Cloning 9504fbdc32 from cache
  - Installing tivie/php-os-detector (1.1.0): Loading from cache
  - Installing symfony/yaml (3.2.x-dev 78a0c5d): Cloning 78a0c5d7d4 from cache
  - Installing psr/log (dev-master 4ebe3a8): Cloning 4ebe3a8bf7 from cache
  - Installing symfony/debug (3.4.x-dev 543deab): Cloning 543deab3ff from cache
  - Installing symfony/polyfill-mbstring (dev-master 2ec8b39): Cloning 2ec8b39c38 from cache
  - Installing symfony/console (3.2.x-dev eced439): Cloning eced439413 from cache
  - Installing squizlabs/php_codesniffer (2.9.x-dev 68fb8e5): Cloning 68fb8e5c76 from cache
  - Installing sebastian/version (1.0.6): Loading from cache
  - Installing sebastian/global-state (1.1.x-dev cea85a8): Cloning cea85a84b0 from cache
  - Installing sebastian/recursion-context (1.0.x-dev b19cc32): Cloning b19cc32984 from cache
  - Installing sebastian/exporter (1.2.x-dev dcd43bc): Cloning dcd43bcc0f from cache
  - Installing sebastian/environment (1.3.x-dev 67f5569): Cloning 67f55699c2 from cache
  - Installing sebastian/diff (1.4.x-dev 7f066a2): Cloning 7f066a26a9 from cache
  - Installing sebastian/comparator (1.2.x-dev 18a5d97): Cloning 18a5d97c25 from cache
  - Installing doctrine/instantiator (dev-master 7af8066): Cloning 7af8066e48 from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing phpunit/phpunit-mock-objects (2.3.x-dev ac8e7a3): Cloning ac8e7a3db3 from cache
  - Installing phpunit/php-timer (dev-master d107f34): Cloning d107f347d3 from cache
  - Installing phpunit/php-file-iterator (1.4.x-dev 730b01b): Cloning 730b01bc3e from cache
  - Installing phpunit/php-token-stream (1.4.x-dev 58bd196): Cloning 58bd196ce8 from cache
  - Installing phpunit/php-code-coverage (2.2.x-dev eabf68b): Cloning eabf68b476 from cache
  - Installing phpdocumentor/reflection-common (dev-master 21bdeb5): Cloning 21bdeb5f65 from cache
  - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
  - Installing webmozart/assert (dev-master 4a8bf11): Cloning 4a8bf11547 from cache
  - Installing phpdocumentor/reflection-docblock (dev-master 4ea1908): Cloning 4ea190884d from cache
  - Installing phpspec/prophecy (dev-master 3d0b392): Cloning 3d0b3928bb from cache
  - Installing phpunit/phpunit (4.8.x-dev 18e5f52): Cloning 18e5f52e84 from cache
  - Installing oomphinc/composer-installers-extender (v1.1.2): Loading from cache
  - Installing dflydev/dot-access-data (v1.1.0): Loading from cache
  - Installing grasmash/yaml-expander (dev-master faac3a4): Cloning faac3a4b2e from cache
  - Installing symfony/filesystem (3.4.x-dev 25b135b): Cloning 25b135bea2 from cache
  - Installing grasmash/yaml-cli (1.0.3): Loading from cache
  - Installing symfony/config (3.4.x-dev e57211b): Cloning e57211b88a from cache
  - Installing symfony/event-dispatcher (3.4.x-dev b869cbf): Cloning b869cbf8a1 from cache
  - Installing webmozart/path-util (dev-master 95a8f7a): Cloning 95a8f7ad15 from cache
  - Installing webflo/drupal-finder (1.1.0): Loading from cache
  - Installing symfony/var-dumper (3.4.x-dev 757074c): Cloning 757074cf71 from cache
  - Installing symfony/process (3.4.x-dev bb3ef65): Cloning bb3ef65d49 from cache
  - Installing symfony/finder (3.4.x-dev dac8d7d): Cloning dac8d7db53 from cache
  - Installing jakub-onderka/php-console-color (0.1): Loading from cache
  - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cache
  - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
  - Installing nikic/php-parser (3.x-dev 94ca9a7): Cloning 94ca9a7ab9 from cache
  - Installing psy/psysh (dev-develop d4c8eab): Cloning d4c8eab068 from cache
  - Installing psr/container (dev-master 2cc4a01): Cloning 2cc4a01788 from cache
  - Installing container-interop/container-interop (1.2.0): Loading from cache
  - Installing league/container (2.x-dev e541429): Cloning e541429f09 from cache
  - Installing consolidation/output-formatters (dev-improved-wrap 6b0d1bc): Cloning 6b0d1bc7cf from cache
  - Installing consolidation/log (dev-master 4e346b4): Cloning 4e346b4c84 from cache
  - Installing consolidation/annotated-command (dev-master a7e8818): Cloning a7e8818168 from cache
  - Installing consolidation/config (dev-master b6676e5): Cloning b6676e51d2 from cache
  - Installing consolidation/robo (dev-master ba32ac5): Cloning ba32ac5f02 from cache
  - Installing composer/semver (dev-master 2b303e4): Cloning 2b303e43d1 from cache
  - Installing twig/twig (1.x-dev b36e3eb): Cloning b36e3eb452 from cache
  - Installing chi-teck/drupal-code-generator (1.21.x-dev 65168f6): Cloning 65168f61db from cache
  - Installing drush/drush (dev-master a884658): Cloning a88465871f from cache
  - Installing drupal/coder (8.2.12): Cloning 984c54a7b1 from cache
  - Installing doctrine/inflector (1.1.x-dev 90b2128): Cloning 90b2128806 from cache
  - Installing doctrine/lexer (dev-master cc709ba): Cloning cc709ba91e from cache
  - Installing doctrine/collections (dev-master 42c4039): Cloning 42c4039eca from cache
  - Installing doctrine/cache (dev-master beb0fa3): Cloning beb0fa35b6 from cache
  - Installing doctrine/annotations (dev-master 320123c): Cloning 320123c27e from cache
  - Installing doctrine/common (dev-master a3e240f): Cloning a3e240fa07 from cache
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.4.4): Loading from cache
  - Installing asm89/twig-lint (dev-master 9ce57f6): Cloning 9ce57f6e45 from cache
  - Installing acquia/blt (9.x-dev f415c28): Cloning f415c28912 from cache
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/var-dumper suggests installing ext-symfony_debug ()
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
consolidation/robo suggests installing pear/archive_tar (Allows tar archives to be created and extracted in taskPack and taskExtract, respectively.)
consolidation/robo suggests installing henrikbjorn/lurker (For monitoring filesystem changes in taskWatch)
consolidation/robo suggests installing patchwork/jsqueeze (For minifying JS files in taskMinify)
consolidation/robo suggests installing natxet/CssMin (For minifying CSS files in taskMinify)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
dealerdirect/phpcodesniffer-composer-installer suggests installing dealerdirect/qa-tools (All the PHP QA tools you'll need)
acquia/blt suggests installing hirak/prestissimo (^0.3)
acquia/blt suggests installing typhonius/acquia_cli (^0.0.7)
Writing lock file
Generating autoload files
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer/
PHP CodeSniffer Config installed_paths set to ../../drupal/coder/coder_sniffer/
Creating BLT templated files...
 > /Users/derhasi/Work/sandbox/blttest/vendor/acquia/blt/bin/blt internal:add-to-project --ansi -y
Installing new Composer dependencies provided by BLT. This make take a while...

Fatal error: Uncaught Error: Class 'Symfony\Component\Debug\Exception\FatalThrowableError' not found in /Users/derhasi/Work/sandbox/blttest/vendor/symfony/console/Application.php:129
Stack trace:
#0 /Users/derhasi/Work/sandbox/blttest/vendor/consolidation/robo/src/Runner.php(175): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /Users/derhasi/Work/sandbox/blttest/vendor/acquia/blt/src/Robo/Blt.php(235): Robo\Runner->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), Object(Acquia\Blt\Robo\Application), Array)
#2 /Users/derhasi/Work/sandbox/blttest/vendor/acquia/blt/bin/blt-robo-run.php(42): Acquia\Blt\Robo\Blt->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /Users/derhasi/Work/sandbox/blttest/vendor/acquia/blt/bin/blt-robo.php(14): require_once('/Users/derhasi/...')
#4 /Users/derhasi/Work/sandb in /Users/derhasi/Work/sandbox/blttest/vendor/symfony/console/Application.php on line 129

@grasmash
Copy link
Contributor

grasmash commented Dec 16, 2017

I actually noticed this issue earlier this week. It does not occur on the 9.1.x branch, which leads me to believe that it's root cause is related to the version constraints for Symfony.

Can you try 9.1.x-dev ?

@grasmash grasmash added the Bug Something isn't working label Dec 16, 2017
@grasmash
Copy link
Contributor

Resolved by #2394.

@uenrico
Copy link

uenrico commented Jan 25, 2018

I just tried 9.1.x-dev and is not working. I tried 8.9.12 and I got the same error:

PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Debug\Exception\FatalThrowableError' not found in /var/www/zzz/my-project/vendor/symfony/console/Application.php:129
Stack trace:
#0 /var/www/zzz/my-project/vendor/consolidation/robo/src/Runner.php(175): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /var/www/zzz/my-project/vendor/acquia/blt/src/Robo/Blt.php(236): Robo\Runner->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput), Object(Acquia\Blt\Robo\Application), Array)
#2 /var/www/zzz/my-project/vendor/acquia/blt/bin/blt-robo-run.php(33): Acquia\Blt\Robo\Blt->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/zzz/my-project/vendor/acquia/blt/bin/blt-robo.php(14): require_once('/var/www/glbdru...')
#4 /var/www/zzz/my-project/vendor/acquia/blt/bin/blt in /var/www/zzz/my-project/vendor/symfony/console/Application.php on line 129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Support A support request
Projects
None yet
Development

No branches or pull requests

4 participants