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

zombie 2.0.0-alpha31 version is not compatible with this driver #94

Closed
niepi opened this issue May 30, 2014 · 15 comments
Closed

zombie 2.0.0-alpha31 version is not compatible with this driver #94

niepi opened this issue May 30, 2014 · 15 comments

Comments

@niepi
Copy link

niepi commented May 30, 2014

Hi, I got v1.1.0 with zombie.js 2.0.0-alpha31 and always get Your zombie.js version is not compatible with this driver. Please use a version <= 1.4.1, but your write in the README.md please use version 2.0.0-alpha1 or higher.

Which version combination should I use?

@aik099
Copy link
Member

aik099 commented May 30, 2014

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.

@niepi
Copy link
Author

niepi commented May 30, 2014

thx, now this works

@niepi niepi closed this as completed May 30, 2014
@AlexanderAllen-zz
Copy link

@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                                                                             
  ]                                                                                                

@AlexanderAllen-zz
Copy link

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

npm install -g zombie@1.4.1

@aik099
Copy link
Member

aik099 commented Jun 21, 2014

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/"
  }
}

@arnaugm
Copy link

arnaugm commented Aug 12, 2014

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.

@aik099
Copy link
Member

aik099 commented Aug 12, 2014

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).

@aik099
Copy link
Member

aik099 commented Aug 12, 2014

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).

@arnaugm
Copy link

arnaugm commented Aug 12, 2014

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].

@aik099
Copy link
Member

aik099 commented Aug 12, 2014

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.

@arnaugm
Copy link

arnaugm commented Aug 12, 2014

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"

@aik099
Copy link
Member

aik099 commented Aug 12, 2014

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 😉

@arnaugm
Copy link

arnaugm commented Aug 12, 2014

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?

@aik099
Copy link
Member

aik099 commented Aug 12, 2014

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.

@arnaugm
Copy link

arnaugm commented Aug 12, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants