drupal-composer / drupal-packagist

:package: Drupal Packagist server to automatically build package information from projects on drupal.org
http://packagist.drupal-composer.org
28 stars 4 forks source link

Could not scan for classes inside "web/core/lib/Drupal.php" which does not appear to be a file nor a folder #66

Closed therobyouknow closed 8 years ago

therobyouknow commented 8 years ago

Could you advise on how to resolve the error above, please? Thank you. My terminal log:

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
  - Installing cweagans/composer-patches (1.5.0)
    Cloning 8de7c73b2eae217f4e7028d7262ff2330aa4b4e8

Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing composer/installers (v1.1.0)
    Cloning a3595c5272a6f247228abb20076ed27321e4aae9

  - Installing composer/semver (1.4.2)
    Cloning c7cb9a2095a074d131b65a8a0cd294479d785573

  - Installing doctrine/lexer (v1.0.1)
    Cloning 83893c552fd2045dd78aef794c31e694c37c0b8c

  - Installing doctrine/inflector (v1.1.0)
    Cloning 90b2128806bfde671b6952ab8bea493942c1fdae

  - Installing doctrine/collections (v1.3.0)
    Cloning 6c1e4eef75f310ea1b3e30945e9f06e652128b8a

  - Installing doctrine/cache (v1.6.0)
    Cloning f8af318d14bdb0eff0336795b428b547bd39ccb6

  - Installing doctrine/annotations (v1.2.7)
    Cloning f25c8aab83e0c3e976fd7d19875f198ccf2f7535

  - Installing doctrine/common (v2.5.3)
    Cloning 10f1f19651343f87573129ca970aef1a47a6f29e

  - Installing zendframework/zend-stdlib (3.1.0)
    Cloning debedcfc373a293f9250cc9aa03cf121428c8e78

  - Installing zendframework/zend-escaper (2.5.2)
    Cloning 2dcd14b61a72d8b8e27d579c6344e12c26141d4e

  - Installing zendframework/zend-feed (2.7.0)
    Cloning 12b328d382aa5200f1de53d4147033b885776b67

  - Installing psr/http-message (1.0.1)
    Cloning f6561bf28d520154e4b0ec72be95418abe6d9363

  - Installing zendframework/zend-diactoros (1.3.6)
    Cloning a60da179c37f2c4e44ef734d0b92824a58943f7f

  - Installing twig/twig (v1.26.0)
    Cloning 81c2b5fd36581370c7731387f05dcdb577050513

  - Installing symfony/yaml (v2.8.11)
    Cloning e7540734bad981fe59f8ef14b6fc194ae9df8d9c

  - Installing symfony/polyfill-mbstring (v1.2.0)
    Cloning dff51f72b0706335131b00a7f49606168c582594

  - Installing symfony/translation (v2.8.11)
    Cloning bf0ff95faa9b6c0708efc1986255e3608d0ed3c7

  - Installing symfony/validator (v2.8.11)
    Cloning 53b1b1d3f7550e4b1e365dbad39a0b6c60bfcf85

  - Installing ircmaxell/password-compat (v1.0.4)
    Cloning 5c5cde8822a69545767f7c7f3058cb15ff84614c

  - Installing symfony/polyfill-php55 (v1.2.0)
    Cloning bf2ff9ad6be1a4772cb873e4eea94d70daa95c6d

  - Installing symfony/serializer (v2.8.11)
    Cloning b03cb6d8f94637669cd9b62b4a5ae2ba631486aa

  - Installing symfony/routing (v2.8.11)
    Cloning 6cee3ed22c778a7410119a3d51a20f60252a156c

  - Installing symfony/polyfill-php54 (v1.2.0)
    Cloning 34d761992f6f2cc6092cc0e5e93f38b53ba5e4f1

  - Installing symfony/http-foundation (v2.8.11)
    Cloning 1d4ab8de2215e44e57fddc1e6b5d122546769e7d

  - Installing symfony/psr-http-message-bridge (v0.2)
    Cloning dc7e308e1dc2898a46776e2221a643cb08315453

  - Installing symfony/process (v2.8.11)
    Cloning 05a03ed27073638658cab9405d99a67dd1014987

  - Installing symfony/polyfill-iconv (v1.2.0)
    Cloning b287e8554b1ffd9b5b20b5df940d906930ff4a10

  - Installing symfony/event-dispatcher (v2.8.11)
    Cloning 889983a79a043dfda68f38c38b6dba092dd49cd8

  - Installing psr/log (1.0.1)
    Cloning 5277094ed527a1c4477177d102fe4c53551953e0

  - Installing symfony/debug (v2.8.11)
    Cloning 8c29235936a47473af16fb91c7c4b7b193c5693c

  - Installing symfony/http-kernel (v2.8.11)
    Cloning a47004349e9216ab98a8019616a66e2d5c32b0ca

  - Installing symfony/dependency-injection (v2.8.11)
    Cloning 0a732a9cafc30e54077967da4d019e1d618a8cb9

  - Installing symfony/console (v2.8.11)
    Cloning 3d3e4fa5f0614c8e45220e5de80332322e33bd90

  - Installing symfony/polyfill-apcu (v1.2.0)
    Cloning 6d58bceaeea2c2d3eb62503839b18646e161cd6b

  - Installing symfony/class-loader (v2.8.11)
    Cloning fb50892408036f9f431b563aac51a3f2f0087e81

  - Installing symfony-cmf/routing (1.3.0)
    Cloning 8e87981d72c6930a27585dcd3119f3199f6cb2a6

  - Installing stack/builder (v1.0.4)
    Cloning 59fcc9b448a8ce5e338a04c4e2e4aca893e83425

  - Installing paragonie/random_compat (v1.4.1)
    Cloning c7e26a21ba357863de030f0b9e701c7d04593774

  - Installing masterminds/html5 (2.2.2)
    Cloning 7866e93dcf0245de22378414e0c2c7350abc45af

  - Installing guzzlehttp/psr7 (1.3.1)
    Cloning 5c6447c9df362e8f8093bda8f5d8873fe5c7f65b

  - Installing guzzlehttp/promises (1.2.0)
    Cloning c10d860e2a9595f8883527fa0021c7da9e65f579

  - Installing guzzlehttp/guzzle (6.2.1)
    Cloning 3f808fba627f2c5b69e2501217bf31af349c1427

  - Installing egulias/email-validator (1.2.13)
    Cloning b8bb147f46cc9790326ce2440a13be06cc5a63bb

  - Installing easyrdf/easyrdf (0.9.1)
    Cloning acd09dfe0555fbcfa254291e433c45fdd4652566

  - Installing drupal/core (8.1.10)
    Cloning 9562f733cdefd735337bf827b3ba5ad031aba4c3
    Failed to download drupal/core from source: The process "git clone --no-checkout 'https://github.com/drupal-composer/drupal-core.git' 'web/core' && cd 'web/core' && git remote add composer 'https://github.com/drupal-composer/drupal-core.git' && git fetch composer" exceeded the timeout of 300 seconds.
    Now trying to download from dist
  - Installing drupal/core (8.1.10)
    Loading from cache

  - Applying patches for drupal/core
    web/modules/patches/core-js-fix-contextual.patch (Contextual links broken because of JS error)
    web/modules/patches/drupalbehaviorerror.patch (Fix quick edit contextual link not available and throwing js error)

  - Installing drupal/addtoany (8.1.4)
    Cloning cd428eced42b16946d6006c89b1709343eb6dfea

  - Installing drupal/admin_toolbar (8.1.15)
    Cloning f8380381183bc76babaec9dfe392511011d54904

  - Installing drupal/blazy (8.1.0-beta2)
    Cloning c5c4da3acb830276ad876e96c94ab11b8d8df4af

  - Installing squizlabs/php_codesniffer (2.6.1)
    Cloning fb72ed32f8418db5e7770be1653e62e0d6f5dd3d

  - Installing drupal/coder (8.2.5)
    Cloning 9ced5f2ad0e77534f6d53c8db43e6c6c3fe1b482

  - Installing symfony/finder (v2.8.8)
    Cloning bf0506ef4e7778fd3f0f1f141ab5e8c1ef35dd7d

  - Installing symfony/filesystem (v2.8.8)
    Cloning 7258ddd6f987053f21fa43d03430580ba54e6096

  - Installing symfony/dom-crawler (v2.8.8)
    Cloning f8c304f5715081c949043902d311480d71adb1e0

  - Installing symfony/css-selector (v2.7.15)
    Cloning f2cc2c55a9982db7bc167385dbf549c640e8cc01

  - Installing symfony/config (v2.8.8)
    Cloning 0926e69411eba491803dbafb9f1f233e2ced58d0

  - Installing stecman/symfony-console-completion (0.5.1)
    Cloning 1a9fc7ab4820cd1aabbdc584c6b25d221e7b6cb5

  - Installing phpseclib/phpseclib (2.0.2)
    Cloning 3d265f7c079f5b37d33475f996d7a383c5fc8aeb

  - Installing padraic/humbug_get_contents (1.0.4)
    Cloning 66797199019d0cb4529cb8d29c6f0b4c5085b53a

  - Installing padraic/phar-updater (1.0.3)
    Cloning c17eeb3887dc4269d1b4837dc875d39e9f8149a8

  - Installing gabordemooij/redbean (v4.3.2)
    Cloning 72368f15cedfa7990c7fb228e47d2f00c7f49d4f

  - Installing alchemy/zippy (0.3.5)
    Cloning 92c773f7bbe47fdb30c61dbaea3dcbf4dd13a40a

  - Installing drupal/console (0.11.3)
    Cloning e0912b0f52455542d18d39f12387f297ec0f6cac

  - Installing drupal/devel (8.1.0-alpha1)
    Cloning 930b7b89c2fa2047ebbb0fb3ba53f45a67409242

  - Installing drupal/google_analytics (8.2.0)
    Cloning 99802b6a9f7711d30838acaa1af9ce2cf5b4d614

  - Installing drupal/honeypot (8.1.23)
    Cloning a5b77a400c6af3edc35a5c8307cb2b6ea7632341

  - Installing drupal/libraries (dev-8.x-3.x 548f3c2)
    Cloning 548f3c2c47596c5242e37b18000e7b2ec930f66a

  - Installing drupal/masquerade (8.1.0-beta1)
    Cloning 4a208ad231cb8efb71eaa9ab7bafb66fac39e7cb

  - Installing drupal/maxlength (8.1.0-beta1)
    Cloning 13c6c12f739a9981fd6169afe27e634b85b4201f

  - Installing drupal/entity (8.1.0-alpha3)
    Cloning 70a105ae063c54bf59e67f9e41cb9121374acb7c

  - Installing drupal/media_entity (8.1.2)
    Cloning 8bc03edd625dc1ce7f7f6b770ce02e51f14cbcd2

  - Installing drupal/token (8.1.0-alpha2)
    Cloning 918d0d5e8e8ee7f446d3e068cb6aa2d7c61ee625

  - Installing drupal/metatag (8.1.0-beta9)
    Cloning 1a62e1e051462cb2ddabf4db35a8fef5c69b9c5c

  - Installing drupal/migrate_plus (8.2.0-beta1)
    Cloning 5c7e48e4430226dec66a312a05f76d09d824819e

  - Installing drupal/migrate_tools (8.2.0-beta1)
    Cloning e23d12cefc71fb35800878078fdb247d1b05307d

  - Installing drupal/migrate_upgrade (8.2.0-beta1)
    Cloning e0c6a0ce859346ae61462070e98dc10f816c955f

  - Installing mollom/client (dev-psr4 bfb97d6)
    Cloning bfb97d639d8b0a757c47742af5cfc59dd8363e44

  - Installing drupal/mollom (8.1.1)
    Cloning 3b5577be29c58c374a1ef592e75ff580200d4a00

  - Installing drupal/entity_reference_revisions (8.1.0)
    Cloning 500d30fe98e8cafd05ff770c9748169acd257aeb

  - Installing drupal/paragraphs (8.1.0)
    Cloning 7d70adcb69416f35eb2d2596340461df8efda009

  - Installing drupal/ctools (8.3.0-alpha26)
    Cloning c14a5eee970c3d0aab02e88f6c6a4d18091439b8

  - Installing drupal/pathauto (8.1.0-alpha3)
    Cloning c4952e15e2906ff2040bc01f5e8f37d23950269e

  - Installing drupal/redis (8.1.0-alpha1)
    Cloning 5e5a43dfabe32fd84438edaef20df2974cef5b3b

  - Installing drupal/responsive_menu (8.2.3)
    Cloning 46bdba5bdc1188955fc312fa2f5b541d512f6723

  - Installing drupal/simple_sitemap (8.2.5)
    Cloning 354ae49491b6fce3654d5f7047a1558a730d2b6e

  - Installing drupal/slick (8.1.0-beta2)
    Cloning 740dbfa66f7a838e53473830e939a4c809076273

  - Installing drupal/slick_extras (8.1.0-beta1)
    Cloning b81bba896a269b917bb1735b5930cf38d6c5cc53

  - Installing drupal/video_embed_field (8.1.1)
    Cloning 531f0c56883307a85c76539e0bf14e4d8a727393

  - Installing drupal/media_entity_image (8.1.1)
    Cloning 889bd7d34fb6a6c1dc2bfaf20485491a2b38e0aa

  - Installing drupal/slick_media (8.1.0-beta2)
    Cloning 436d25f2cf7fb2acc6d0606922c2368ae0ee4c30

  - Installing drupal/smtp (8.1.0-alpha2)
    Cloning 9ae09cbc05c111f051e4eb0f4f57fa483a11a110

  - Installing drupal/superfish (8.1.0-rc2)
    Cloning 9b97cc5bf22531f3939ca016c6a306f35b2f56fb

  - Applying patches for drupal/superfish
    web/modules/patches/superfish.patch (Adjusting for directory path change in superfish)
    web/modules/patches/superfish-ordering.patch (Fix the weight of children in superfish)
    web/modules/patches/2729165-superfish-max-depth.patch (Fix max depth option)

  - Installing drupal/twig_tweak (8.1.3)
    Cloning 7b86049df3fe619fd2473760279365d1acb71635

  - Installing drupal/videojs (8.1.0)
    Cloning 9c7d8d74a3a8cc5a9b523143d8c39736ab986059

  - Installing drupal/views_infinite_scroll (8.1.2)
    Cloning d00719776edfcd16c7b4b02cc4a37395cc635af0

  - Installing symfony/var-dumper (v2.8.8)
    Cloning eb21798f1cd2d3a1c1e1e4d0632b6d04a798f210

  - Installing nikic/php-parser (v2.1.0)
    Cloning 47b254ea51f1d6d5dc04b9b299e88346bf2369e3

  - Installing jakub-onderka/php-console-color (0.1)
    Cloning e0b393dacf7703fc36a4efc3df1435485197e6c1

  - Installing jakub-onderka/php-console-highlighter (v0.3.2)
    Cloning 7daa75df45242c8d5b75a22c00a201e7954e4fb5

  - Installing dnoegel/php-xdg-base-dir (0.1)
    Cloning 265b8593498b997dc2d31e75b89f053b5cc9621a

  - Installing psy/psysh (v0.7.2)
    Cloning e64e10b20f8d229cac76399e1f3edddb57a0f280

  - Installing pear/console_table (v1.3.0)
    Cloning 64100b9ee81852f4fa17823e55d0b385a544f976

  - Installing drush/drush (8.1.2)
    Cloning 85b58140d576cfdb9546a23c3ff44b72d0dae5bc

  - Installing wkse/google_tag (8.0.2)
    Cloning e1eacd459adcae8752eea954d3595dc7962b09d5

  - Installing symfony/browser-kit (v3.1.2)
    Cloning dcf41ed026b0499254385b5c88f03247b2ba010b

  - Installing fabpot/goutte (v3.1.2)
    Cloning 3cbc6ed222422a28400e470050f14928a153207e

  - Installing behat/mink (v1.7.1)
    Cloning e6930b9c74693dff7f4e58577e1b1743399f3ff9

  - Installing behat/mink-browserkit-driver (v1.3.2)
    Cloning 10e67fb4a295efcd62ea0bf16025a85ea19534fb

  - Installing behat/mink-goutte-driver (v1.2.1)
    Cloning 8b9ad6d2d95bc70b840d15323365f52fcdaea6ca

  - Installing jcalderonzumba/gastonjs (dev-master 4ff4a78)
    Cloning 4ff4a788d4995ae0d4b45fdcb1b76650e2eec72a

  - Installing jcalderonzumba/mink-phantomjs-driver (v0.3.1)
    Cloning 782892dbea4af7d04024374672b3790b6c008def

  - Installing mikey179/vfsstream (v1.6.3)
    Cloning c19925cd0390d3c436a0203ae859afa460d0474b

  - Installing webmozart/assert (1.0.2)
    Cloning 30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde

  - Installing phpdocumentor/reflection-common (1.0)
    Cloning 144c307535e82c8fdcaacbcfc1d6d8eeb896687c

  - Installing phpdocumentor/type-resolver (0.2)
    Cloning b39c7a5b194f9ed7bd0dd345c751007a41862443

  - Installing phpdocumentor/reflection-docblock (3.1.0)
    Cloning 9270140b940ff02e58ec577c237274e92cd40cdd

  - Installing phpunit/php-token-stream (1.4.8)
    Cloning 3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da

  - Installing sebastian/version (1.0.6)
    Cloning 58b3a85e7999757d6ad81c787a1fbf5ff6c628c6

  - Installing sebastian/global-state (1.1.1)
    Cloning bc37d50fea7d017d3d340f230811c9f1d7280af4

  - Installing sebastian/recursion-context (1.0.2)
    Cloning 913401df809e99e4f47b27cdd781f4a258d58791

  - Installing sebastian/exporter (1.2.2)
    Cloning 42c4c2eec485ee3e159ec9884f95b431287edde4

  - Installing sebastian/environment (1.3.7)
    Cloning 4e8f0da10ac5802913afc151413bc8c53b6c2716

  - Installing sebastian/diff (1.4.1)
    Cloning 13edfd8706462032c2f52b4b862974dd46b71c9e

  - Installing sebastian/comparator (1.2.0)
    Cloning 937efb279bd37a375bcadf584dec0726f84dbf22

  - Installing phpunit/php-text-template (1.2.1)
    Cloning 31f8b717e51d9a2afca6c9f046f5d69fc27c8686

  - Installing doctrine/instantiator (1.0.5)
    Cloning 8e884e78f9f0eb1329e445619e04456e64d8051d

  - Installing phpunit/phpunit-mock-objects (2.3.8)
    Cloning ac8e7a3db35738d56ee9a76e78a4e03d97628983

  - Installing phpunit/php-timer (1.0.8)
    Cloning 38e9124049cf1a164f1e4537caf19c99bf1eb260

  - Installing phpunit/php-file-iterator (1.4.1)
    Cloning 6150bf2c35d3fc379e50c7602b75caceaa39dbf0

  - Installing phpunit/php-code-coverage (2.2.4)
    Cloning eabf68b476ac7d0f73793aada060f1c1a9bf8979

  - Installing phpspec/prophecy (v1.6.1)
    Cloning 58a8137754bc24b25740d4281399a4a3596058e0

  - Installing phpunit/phpunit (4.8.26)
    Cloning fc1d8cd5b5de11625979125c5639347896ac2c74

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 ehen using the Writer subcomponent)
symfony/validator suggests installing symfony/expression-language (For using the 2.4 Expression validator)
symfony/validator suggests installing symfony/intl ()
symfony/validator suggests installing symfony/property-access (For using the 2.4 Validator API)
symfony/serializer suggests installing symfony/property-access (For using the ObjectNormalizer.)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/dependency-injection suggests installing symfony/expression-language (For using expressions in service container configuration)
symfony/dependency-injection suggests installing symfony/proxy-manager-bridge (Generate service proxies to lazy load them)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
easyrdf/easyrdf suggests installing ml/json-ld (~1.0)
phpseclib/phpseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
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-mcrypt (Install the Mcrypt extension in order to speed up a few other cryptographic operations.)
alchemy/zippy suggests installing ext-zip (To use the ZipExtensionAdapter)
alchemy/zippy suggests installing guzzle/guzzle (To use the GuzzleTeleporter)
drupal/migrate_plus suggests installing drupal/migrate_source_json (Required by drupal/migrate_example_advanced)
drupal/migrate_plus suggests installing drupal/migrate_source_xml (Required by drupal/migrate_example_advanced)
drupal/paragraphs suggests installing drupal/search_api (Required by drupal/paragraphs_demo)
drupal/paragraphs suggests installing drupal/search_api_db (Required by drupal/paragraphs_demo)
drupal/slick_extras suggests installing drupal/slick_views (Required by drupal/slick_example)
symfony/var-dumper suggests installing ext-symfony_debug ()
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
pear/console_table suggests installing pear/Console_Color2 (>=0.1.2)
drush/drush suggests installing drush/config-extra (Provides configuration workflow commands, such as config-merge.)
behat/mink suggests installing behat/mink-selenium2-driver (slow, but JS-enabled driver for any app (requires Selenium2))
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Generating autoload files

  [RuntimeException]                                                                                           
  Could not scan for classes inside "web/core/lib/Drupal.php" which does not appear to be a file nor a folder  

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
therobyouknow commented 8 years ago

Solution appears to be:

sudo composer self-update

based on my research finding similar (but not exactly the same) error "Could not scan for classes inside"...

Reference (found by my research):

I then did:

composer install --prefer-dist

The --prefer-dist was because of a time out issue (perhaps not related to the original issue)

Reference:

The install proceeds past the place where it halted before and looks like it completed.

sooendre commented 3 years ago

As this is the 1st mach on google, I'm posting this here: I solved it by removing the core directory with rm -rf core and running composer install again

mmrtnt commented 4 months ago

As this is the 1st mach on google, I'm posting this here: I solved it by removing the core directory with rm -rf core and running composer install again

Yes! You have to remove the entire "core" directory, not just the files in it.