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

Composer installation failing. #131

Closed
krusynth opened this issue Apr 30, 2012 · 2 comments
Closed

Composer installation failing. #131

krusynth opened this issue Apr 30, 2012 · 2 comments

Comments

@krusynth
Copy link

I seem to be getting a nasty composer error when trying to install through the proscribed method #1. I've got a brand new Symfony 2 installation, with the following composer.json, the error only appears when the stof/doctrine-extensions-bundle line is present.

    "require": {
        "php":              ">=5.3.2",
        "symfony/symfony":  ">=2.0.10,<2.1.0-dev",
        "doctrine/orm":     ">=2.1.0,<2.2.0-dev",
        "twig/extensions":  "*",

"symfony/assetic-bundle":         "2.0.*",
"sensio/generator-bundle":        "2.0.*",
"sensio/framework-extra-bundle":  "2.0.*",
"sensio/distribution-bundle":     "2.0.*",
"jms/security-extra-bundle":      "1.0.*",
"stof/doctrine-extensions-bundle": "dev-master"

},

"autoload": {
"psr-0": {
"Krues8dr": "src/"
}
}


}```

Error Dump:

```localhost:Symfony krues8dr$ ./composer.phar update --verbose
Updating dependencies

  [ErrorException]  
  assert(): Assertion failed  

Exception trace:
 () at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/DependencyResolver/Solver.php:1055
 Composer\Util\ErrorHandler::handle() at n/a:n/a
 assert() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/DependencyResolver/Solver.php:1055
 Composer\DependencyResolver\Solver->addDecision() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/DependencyResolver/Solver.php:1287
 Composer\DependencyResolver\Solver->setPropagateLearn() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/DependencyResolver/Solver.php:1341
 Composer\DependencyResolver\Solver->selectAndInstall() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/DependencyResolver/Solver.php:1709
 Composer\DependencyResolver\Solver->runSat() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/DependencyResolver/Solver.php:968
 Composer\DependencyResolver\Solver->solve() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/Installer.php:278
 Composer\Installer->doInstall() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/Installer.php:160
 Composer\Installer->run() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/Command/UpdateCommand.php:61
 Composer\Command\UpdateCommand->execute() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:237
 Symfony\Component\Console\Command\Command->run() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/Console/Application.php:74
 Composer\Console\Application->doRun() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:106
 Symfony\Component\Console\Application->run() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/src/Composer/Console/Application.php:59
 Composer\Console\Application->run() at phar:///Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar/bin/composer:9
 require() at /Users/krues8dr/Sites/stack.localhost/http/Symfony/composer.phar:15

update [--prefer-source] [--dry-run] [--dev]

@stof
Copy link
Owner

stof commented Apr 30, 2012

There is a bug in composer to report failed resolution right now apparently (/cc @naderman). But the issue is simple: you require framework-bundle 2.0.* (thus forcing to use symfony 2.0.x even if >=2.0.10 would allow symfony master) and you require dev-master for the bundle, which is only compatible with Symfony 2.1. You need to allow the 1.0.x serie (either by using 1.0.* as constraint or even *)

@krusynth
Copy link
Author

Perfect! Changing the line to:

        "stof/doctrine-extensions-bundle": "1.0.*"

solved the problem immediately! Thanks so much for the help!

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

2 participants