Coder Social home page Coder Social logo

Comments (15)

aik099 avatar aik099 commented on July 30, 2024

There is no released version of MinkZombieDriver that is compatible with Zombie 2.0+. I can only recommend using dev-master of both driver and Mink to get it working.

from minkzombiedriver.

niepi avatar niepi commented on July 30, 2024

thx, now this works

from minkzombiedriver.

AlexanderAllen-zz avatar AlexanderAllen-zz commented on July 30, 2024

@aik099 can you please post the composer configuration for this?

I am using the following composer.json and still getting this notice:

{
  "require": {
    "behat/behat": "2.4.*@stable",
    "behat/mink": "*@dev",
    "behat/mink-goutte-driver": "*",
    "behat/mink-extension": "*",
    "behat/mink-zombie-driver": "*@dev-master",
    "behat/mink-selenium2-driver": "*",
    "behat/symfony2-extension": "*"
  },
  "minimum-stability": "dev",
    "config": {
    "bin-dir": "bin/"
  }
}
 [RuntimeException]                                                                               
  Server process has been terminated: (8) [                                                        
  /tmp/mink_nodejs_servernAu0Ty:24                                                                 
    throw new Error("Your zombie.js version is not compatible with this driver.                    
          ^                                                                                        
  Error: Your zombie.js version is not compatible with this driver. Please use a version <= 1.4.1  
      at Object.<anonymous> (/tmp/mink_nodejs_servernAu0Ty:24:9)                                   
      at Module._compile (module.js:456:26)                                                        
      at Object.Module._extensions..js (module.js:474:10)                                          
      at Module.load (module.js:356:32)                                                            
      at Function.Module._load (module.js:312:12)                                                  
      at Function.Module.runMain (module.js:497:10)                                                
      at startup (node.js:119:16)                                                                  
      at node.js:906:3                                                                             
  ]                                                                                                

from minkzombiedriver.

AlexanderAllen-zz avatar AlexanderAllen-zz commented on July 30, 2024

Fixed this notice by installing the requested version of zombie.js:

npm install -g [email protected]

from minkzombiedriver.

aik099 avatar aik099 commented on July 30, 2024

Because of "behat/behat": "2.4.*@stable", line all other dependencies don't use dev-master versions, but use latest stable version.

Try changing composer.json to look like this:

{
  "require": {
    "behat/behat": "2.4.*@stable",
    "behat/mink-extension": "*@dev",
    "behat/mink": "*@dev",
    "behat/mink-goutte-driver": "*@dev",
    "behat/mink-zombie-driver": "*@dev",
    "behat/mink-selenium2-driver": "*@dev",
    "behat/symfony2-extension": "*"
  },
  "minimum-stability": "dev",
    "config": {
    "bin-dir": "bin/"
  }
}

from minkzombiedriver.

arnaugm avatar arnaugm commented on July 30, 2024

Is there a way to do it without setting the minimum-stability option to dev? That impacts the whole project. With minimum-stability to stable, nothing is updated even with the "*@dev" in every driver.

from minkzombiedriver.

aik099 avatar aik099 commented on July 30, 2024

There were changes in both driver and Mink itself make it work with latest Zombie. I'm afraid, that driver dev version alone isn't enough. You also should set 1.5@dev to the behat/mink in composer.json.

And @dev is only adhered in final composer.json (one, that includes mink & drivers).

from minkzombiedriver.

aik099 avatar aik099 commented on July 30, 2024

And I don't recommend using * in version constraint. Also dev-master as version should do the trick, but that's the same as ~1.2@dev (for the driver).

from minkzombiedriver.

arnaugm avatar arnaugm commented on July 30, 2024

With

"behat/mink": "1.5@dev",
"behat/mink-zombie-driver": "~1.2@dev"

I get

  Problem 1
    - Can only install one of: behat/mink[v1.5.0, 1.6.x-dev].
    - Can only install one of: behat/mink[1.6.x-dev, v1.5.0].
    - behat/mink-zombie-driver 1.2.x-dev requires behat/mink ~1.6@dev -> satisfiable by behat/mink[1.6.x-dev].
    - Installation request for behat/mink-zombie-driver ~1.2@dev -> satisfiable by behat/mink-zombie-driver[1.2.x-dev].
    - Installation request for behat/mink 1.5@dev -> satisfiable by behat/mink[v1.5.0].

from minkzombiedriver.

aik099 avatar aik099 commented on July 30, 2024

I see, then try changing behat/mink version to the ~1.6@dev. Does that help. I myself have all dev versions, that's why I can't experiment much locally.

from minkzombiedriver.

arnaugm avatar arnaugm commented on July 30, 2024

A problem with the mink extension

  Problem 1
    - behat/mink-extension v1.1.4 requires behat/mink >=1.4.3,<1.6-dev -> no matching package found.
    - behat/mink-extension v1.1.4 requires behat/mink >=1.4.3,<1.6-dev -> no matching package found.
    - Installation request for behat/mink-extension == 1.1.4.0 -> satisfiable by behat/mink-extension[v1.1.4].

The extension is defined like

"behat/mink-extension": "*@dev"

from minkzombiedriver.

aik099 avatar aik099 commented on July 30, 2024

Now you see the point of manipulations with versions I hope to choose each package version that will satisfy any other package that is using it. I'll let you continue on your own 😉

from minkzombiedriver.

arnaugm avatar arnaugm commented on July 30, 2024

Sure, the fact is that I'm a bit confused when there are no numbers, so if we define *@dev, what are we saying exactly? Use the very last commit? And with ~1.2@dev or 1.2.x-dev? What are the differences?

from minkzombiedriver.

aik099 avatar aik099 commented on July 30, 2024

When we say @dev then we allow non-released version to kick in. Using branch-alias (https://getcomposer.org/doc/articles/aliases.md#branch-alias) key in the composer.json of included package it's possible to alias dev-master (which is branch named master) to a particular version (the 1.2.x in this case or 1.2.* if you prefer). Then versions of packages are compared to see what fits.

I recommend reading more about how Composer does that version matching if you're interested.

from minkzombiedriver.

arnaugm avatar arnaugm commented on July 30, 2024

I did it before but maybe too superficial, I'll have a deeper look, thanks :)

from minkzombiedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.