• To not clog up the issue, I'll comment here. I'm confused. How is your composer.json even install chrome-mink-driver? That package is not even listed? Maybe as a dependency of one of your other packages?

    Edited by Keith Davis
  • Yes, I guess so! But it wouldn't hurt for clarity to be explicit (nor would it hurt to include composer.lock I guess). With the composer.json above:

    chris@thip:/tmp/test$ composer why dmore/chrome-mink-driver
    dmore/behat-chrome-extension  1.3.0  requires  dmore/chrome-mink-driver (^2.4.1)  

    composer.lock

    Edited by Chris Burgess
  • Fails even if I just drop the files in new directory.

    C:\inetpub\test>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. It is recommended that you run `composer update` or `composer update <package name>`.
    Package operations: 86 installs, 0 updates, 0 removals
      - Installing cweagans/composer-patches (1.6.7): Loading from cache
    Gathering patches for root package.
    Gathering patches for dependencies. This might take a minute.
      - Installing zaporylie/composer-drupal-optimizations (1.1.1): Loading from cache
      - Installing symfony/polyfill-mbstring (v1.18.1): Loading from cache
      - Installing symfony/polyfill-ctype (v1.18.1): Loading from cache
      - Installing symfony/finder (v5.1.5): Loading from cache
      - Installing symfony/filesystem (v5.1.5): Loading from cache
      - Installing symfony/config (v4.4.13): Loading from cache
      - Installing symfony/deprecation-contracts (v2.2.0): Loading from cache
      - Installing symfony/yaml (v5.1.5): Loading from cache
      - Installing symfony/polyfill-php80 (v1.18.1): Loading from cache
      - Installing psr/event-dispatcher (1.0.0): Loading from cache
      - Installing symfony/event-dispatcher-contracts (v2.2.0): Loading from cache
      - Installing symfony/event-dispatcher (v5.1.5): Loading from cache
      - Installing psr/container (1.0.0): Loading from cache
      - Installing symfony/service-contracts (v2.2.0): Loading from cache
      - Installing symfony/dependency-injection (v4.4.13): Loading from cache
      - Installing symfony/polyfill-intl-normalizer (v1.18.1): Loading from cache
      - Installing symfony/polyfill-intl-grapheme (v1.18.1): Loading from cache
      - Installing symfony/string (v5.1.5): Loading from cache
      - Installing symfony/polyfill-php73 (v1.18.1): Loading from cache
      - Installing symfony/console (v5.1.5): Loading from cache
      - Installing psr/log (1.1.3): Loading from cache
      - Installing symfony/process (v4.4.13): Loading from cache
      - Installing localheinz/diff (1.1.1): Loading from cache
      - Installing justinrainbow/json-schema (5.2.10): Loading from cache
      - Installing ergebnis/json-printer (3.1.1): Loading from cache
      - Installing ergebnis/json-normalizer (0.13.1): Loading from cache
      - Installing ergebnis/composer-normalize (2.8.1): Loading from cache
      - Installing symfony/options-resolver (v5.1.5): Loading from cache
      - Installing seld/jsonlint (1.8.2): Loading from cache
      - Installing monolog/monolog (2.1.1): Loading from cache
      - Installing gitonomy/gitlib (v1.2.2): Loading from cache
      - Installing doctrine/collections (1.6.7): Loading from cache
      - Installing phpro/grumphp (v0.18.1): Loading from cache
      - Installing behat/gherkin (v4.6.2): Loading from cache
      - Installing symfony/dom-crawler (v4.4.13): Loading from cache
      - Installing symfony/browser-kit (v4.4.13): Loading from cache
      - Installing symfony/css-selector (v5.1.5): Loading from cache
      - Installing behat/mink (v1.8.1): Loading from cache
      - Installing behat/mink-browserkit-driver (v1.3.4): Loading from cache
      - Installing behat/transliterator (v1.3.0): Loading from cache
      - Installing symfony/translation-contracts (v2.2.0): Loading from cache
      - Installing symfony/translation (v4.4.13): Loading from cache
      - Installing behat/behat (v3.7.0): Loading from cache
      - Installing bex/behat-extension-driver-locator (2.0.1): Loading from cache
      - Installing behat/mink-extension (2.3.1): Loading from cache
      - Installing bex/behat-screenshot (2.1.0): Loading from cache
      - Installing textalk/websocket (1.4.0): Loading from cache
      - Installing dmore/chrome-mink-driver (2.7.0): Loading from cache
      - Applying patches for dmore/chrome-mink-driver
        https://gitlab.com/DMore/chrome-mink-driver/-/merge_requests/86.patch (dmore/chrome-mink-driver!86: Provide access to console.log messages)
       Could not apply patch! Skipping. The error was: Cannot apply patch https://gitlab.com/DMore/chrome-mink-driver/-/merge_requests/86.patch
    
      - Installing dmore/behat-chrome-extension (1.3.0): Loading from cache
      - Installing squizlabs/php_codesniffer (3.5.6): Loading from cache
      - Installing sirbrillig/phpcs-variable-analysis (v2.8.3): Loading from cache
      - Installing drupal/coder (8.3.10): Cloning e1d71c6bb7 from cache
      - Installing drupal/core-render (8.9.5): Loading from cache
      - Installing drupal/core-utility (8.9.5): Loading from cache
      - Installing drupal/drupal-driver (dev-master ed4bfcd): Cloning ed4bfcdbbe from cache
      - Installing instaclick/php-webdriver (1.4.7): Loading from cache
      - Installing behat/mink-selenium2-driver (v1.4.0): Loading from cache
      - Installing symfony/polyfill-php72 (v1.18.1): Loading from cache
      - Installing paragonie/random_compat (v9.99.99): Loading from cache
      - Installing symfony/polyfill-php70 (v1.18.1): Loading from cache
      - Installing symfony/polyfill-intl-idn (v1.18.1): Loading from cache
      - Installing ralouphie/getallheaders (3.0.3): Loading from cache
      - Installing psr/http-message (1.0.1): Downloading (100%)
      - Installing guzzlehttp/psr7 (1.6.1): Loading from cache
      - Installing guzzlehttp/promises (v1.3.1): Loading from cache
      - Installing guzzlehttp/guzzle (6.5.5): Loading from cache
      - Installing fabpot/goutte (v3.3.0): Loading from cache
      - Installing behat/mink-goutte-driver (v1.2.1): Loading from cache
      - Installing drupal/drupal-extension (v4.1.0): Loading from cache
      - Installing php-http/discovery (1.10.0): Loading from cache
      - Installing php-http/message-factory (v1.0.2): Loading from cache
      - Installing clue/stream-filter (v1.4.1): Loading from cache
      - Installing php-http/message (1.9.0): Loading from cache
      - Installing php-http/promise (1.1.0): Loading from cache
      - Installing php-parallel-lint/php-parallel-lint (v1.2.0): Loading from cache
      - Installing psr/http-client (1.0.1): Loading from cache
      - Installing php-http/httplug (2.2.0): Loading from cache
      - Installing symfony/http-client-contracts (v2.2.0): Loading from cache
      - Installing symfony/http-client (v5.1.5): Loading from cache
      - Installing php-http/guzzle6-adapter (v2.0.1): Loading from cache
      - Installing rpkamp/mailhog-client (0.4.1): Loading from cache
      - Installing rpkamp/mailhog-behat-extension (0.6.4): Loading from cache
      - Installing rpkamp/mailhog-mink-behat-context (0.4.0): Loading from cache
      - Installing symfony/mime (v5.1.5): Loading from cache
      - Installing sensiolabs/security-checker (v6.0.3): Loading from cache
    symfony/event-dispatcher suggests installing symfony/http-kernel
    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)
    symfony/polyfill-intl-normalizer suggests installing ext-intl (For best performance)
    symfony/polyfill-intl-grapheme suggests installing ext-intl (For best performance)
    symfony/console suggests installing symfony/lock
    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 elasticsearch/elasticsearch (Allow sending log messages to an Elasticsearch server via official client)
    monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
    monolog/monolog suggests installing ext-mongodb (Allow sending log messages to a MongoDB server (via driver))
    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 library))
    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)
    phpro/grumphp suggests installing atoum/atoum (Lets GrumPHP run your unit tests.)
    phpro/grumphp suggests installing brianium/paratest (Lets GrumPHP run PHPUnit in parallel.)
    phpro/grumphp suggests installing codeception/codeception (Lets GrumPHP run your project's full stack tests)
    phpro/grumphp suggests installing codegyre/robo (Lets GrumPHP run your automated PHP tasks.)
    phpro/grumphp suggests installing designsecurity/progpilot (Lets GrumPHP be sure that there are no vulnerabilities in your code.)
    phpro/grumphp suggests installing doctrine/orm (Lets GrumPHP validate your Doctrine mapping files.)
    phpro/grumphp suggests installing friendsofphp/php-cs-fixer (Lets GrumPHP automatically fix your codestyle.)
    phpro/grumphp suggests installing friendsoftwig/twigcs (Lets GrumPHP check Twig coding standard.)
    phpro/grumphp suggests installing infection/infection (Lets GrumPHP evaluate the quality your unit tests)
    phpro/grumphp suggests installing maglnet/composer-require-checker (Lets GrumPHP analyze composer dependencies.)
    phpro/grumphp suggests installing malukenho/kawaii-gherkin (Lets GrumPHP lint your Gherkin files.)
    phpro/grumphp suggests installing nikic/php-parser (Lets GrumPHP run static analyses through your PHP files.)
    phpro/grumphp suggests installing phan/phan (Lets GrumPHP unleash a static analyzer on your code)
    phpro/grumphp suggests installing phing/phing (Lets GrumPHP run your automated PHP tasks.)
    phpro/grumphp suggests installing phpmd/phpmd (Lets GrumPHP sort out the mess in your code)
    phpro/grumphp suggests installing phpspec/phpspec (Lets GrumPHP spec your code.)
    phpro/grumphp suggests installing phpstan/phpstan (Lets GrumPHP discover bugs in your code without running it.)
    phpro/grumphp suggests installing phpunit/phpunit (Lets GrumPHP run your unit tests.)
    phpro/grumphp suggests installing povils/phpmnd (Lets GrumPHP help you detect magic numbers in PHP code.)
    phpro/grumphp suggests installing roave/security-advisories (Lets GrumPHP be sure that there are no known security issues.)
    phpro/grumphp suggests installing sebastian/phpcpd (Lets GrumPHP find duplicated code.)
    phpro/grumphp suggests installing sstalle/php7cc (Lets GrumPHP check PHP 5.3 - 5.6 code compatibility with PHP 7.)
    phpro/grumphp suggests installing symfony/phpunit-bridge (Lets GrumPHP run your unit tests with the phpunit-bridge of Symfony.)
    phpro/grumphp suggests installing symplify/easycodingstandard (Lets GrumPHP check coding standard.)
    phpro/grumphp suggests installing vimeo/psalm (Lets GrumPHP discover errors in your code without running it.)
    behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
    bex/behat-screenshot suggests installing bex/behat-screenshot-image-driver-img42 (Allows to upload the screenshot to img42.com)
    bex/behat-screenshot suggests installing bex/behat-screenshot-image-driver-unsee (Allows to upload the screenshot to unsee.cc)
    bex/behat-screenshot suggests installing bex/behat-screenshot-image-driver-uploadpie (Allows to upload the screenshot to uploadpie.com)
    paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
    symfony/polyfill-intl-idn suggests installing ext-intl (For best performance)
    guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
    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.)
    php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
    php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories)
    php-parallel-lint/php-parallel-lint suggests installing php-parallel-lint/php-console-highlighter (Highlight syntax in code snippet)
    Generating autoload files
    37 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    Do you want to create a grumphp.yml file? [Yes]: no
    Skipped configuring GrumPHP. Using default configuration.
    Created git hooks folder at: C:\inetpub\test\.git\hooks
    Watch out! GrumPHP is sniffing your commits!
    Edited by Keith Davis
  • That composer.json worked for me earlier this morning.

    DMore/chrome-mink-driver!86 is merged now, which might change things if you were referencing dev or master etc?

    But you aren't (2.7.0 above like I had), so I suggest to use verbose flags and see why that patch won't apply.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment