composer/composer — Issue #160: Fatal error in solver
Author: beberlei
Created: 2011-12-17 10:48:59+00:00
State: open

When installing

"require": {
"php": ">=5.3.2",
"symfony/symfony": ">=2.0",
"doctrine/migrations": ">=2.0"
},

i get:

Installing dependencies.
PHP Warning: assert(): Assertion failed in phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Stack trace:
PHP 1. {main}() /home/benny/code/php/composer.phar:0
PHP 2. require() /home/benny/code/php/composer.phar:15
PHP 3. Composer\Console\Application->run() phar:///home/benny/code/php/composer.phar/bin/composer:14
PHP 4. Symfony\Component\Console\Application->run() phar:///home/benny/code/php/composer.phar/src/Composer/Console/Application.php:2
PHP 5. Composer\Console\Application->doRun() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:2
PHP 6. Symfony\Component\Console\Application->doRun() phar:///home/benny/code/php/composer.phar/src/Composer/Console/Application.php:2
PHP 7. Symfony\Component\Console\Command\Command->run() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:2
PHP 8. Composer\Command\InstallCommand->execute() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:2
PHP 9. Composer\Command\InstallCommand->install() phar:///home/benny/code/php/composer.phar/src/Composer/Command/InstallCommand.php:10
PHP 10. Composer\DependencyResolver\Solver->solve() phar:///home/benny/code/php/composer.phar/src/Composer/Command/InstallCommand.php:10
PHP 11. Composer\DependencyResolver\Solver->runSat() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 12. Composer\DependencyResolver\Solver->selectAndInstall() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 13. Composer\DependencyResolver\Solver->setPropagateLearn() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 14. Composer\DependencyResolver\Solver->analyze() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 15. assert() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP Notice: Undefined offset: -1 in phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Stack trace:
PHP 1. {main}() /home/benny/code/php/composer.phar:0
PHP 2. require() /home/benny/code/php/composer.phar:15
PHP 3. Composer\Console\Application->run() phar:///home/benny/code/php/composer.phar/bin/composer:14
PHP 4. Symfony\Component\Console\Application->run() phar:///home/benny/code/php/composer.phar/src/Composer/Console/Application.php:2
PHP 5. Composer\Console\Application->doRun() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:2
PHP 6. Symfony\Component\Console\Application->doRun() phar:///home/benny/code/php/composer.phar/src/Composer/Console/Application.php:2
PHP 7. Symfony\Component\Console\Command\Command->run() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:2
PHP 8. Composer\Command\InstallCommand->execute() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:2
PHP 9. Composer\Command\InstallCommand->install() phar:///home/benny/code/php/composer.phar/src/Composer/Command/InstallCommand.php:10
PHP 10. Composer\DependencyResolver\Solver->solve() phar:///home/benny/code/php/composer.phar/src/Composer/Command/InstallCommand.php:10
PHP 11. Composer\DependencyResolver\Solver->runSat() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 12. Composer\DependencyResolver\Solver->selectAndInstall() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 13. Composer\DependencyResolver\Solver->setPropagateLearn() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 14. Composer\DependencyResolver\Solver->analyze() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP Fatal error: Call to a member function getPackageId() on a non-object in phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Stack trace:
PHP 1. {main}() /home/benny/code/php/composer.phar:0
PHP 2. require() /home/benny/code/php/composer.phar:15
PHP 3. Composer\Console\Application->run() phar:///home/benny/code/php/composer.phar/bin/composer:14
PHP 4. Symfony\Component\Console\Application->run() phar:///home/benny/code/php/composer.phar/src/Composer/Console/Application.php:2
PHP 5. Composer\Console\Application->doRun() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:2
PHP 6. Symfony\Component\Console\Application->doRun() phar:///home/benny/code/php/composer.phar/src/Composer/Console/Application.php:2
PHP 7. Symfony\Component\Console\Command\Command->run() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:2
PHP 8. Composer\Command\InstallCommand->execute() phar:///home/benny/code/php/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:2
PHP 9. Composer\Command\InstallCommand->install() phar:///home/benny/code/php/composer.phar/src/Composer/Command/InstallCommand.php:10
PHP 10. Composer\DependencyResolver\Solver->solve() phar:///home/benny/code/php/composer.phar/src/Composer/Command/InstallCommand.php:10
PHP 11. Composer\DependencyResolver\Solver->runSat() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 12. Composer\DependencyResolver\Solver->selectAndInstall() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 13. Composer\DependencyResolver\Solver->setPropagateLearn() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP 14. Composer\DependencyResolver\Solver->analyze() phar:///home/benny/code/php/composer.phar/src/Composer/DependencyResolver/Solver.php:2