symfony / symfony

The Symfony PHP framework
https://symfony.com
MIT License
29.8k stars 9.47k forks source link

composer update failed while install symfony framework bundle. #6778

Closed gchokeen closed 11 years ago

gchokeen commented 11 years ago

I tried to install symfony/framework-bundle bundle because "doctrine/doctrine-bundle": "dev-master", required framework-bundle. But while update the composer it failed and throw below message.

  Problem 1
    - don't install symfony/framework-bundle dev-master|don't install symfony/symfony v2.1.0
    - don't install symfony/framework-bundle dev-master|don't install symfony/symfony v2.1.1
    - don't install symfony/framework-bundle dev-master|don't install symfony/symfony v2.1.2
    - don't install symfony/framework-bundle dev-master|don't install symfony/symfony v2.1.3
    - don't install symfony/framework-bundle dev-master|don't install symfony/symfony v2.1.4
    - don't install symfony/framework-bundle dev-master|don't install symfony/symfony v2.1.5
    - don't install symfony/framework-bundle dev-master|don't install symfony/symfony v2.1.6
    - don't install symfony/framework-bundle dev-master|remove symfony/symfony v2.1.6
    - Installation request for symfony/framework-bundle dev-master -> satisfiable by symfony/framework-bundle dev-master.
    - Installation request for symfony/symfony 2.1.*@stable -> satisfiable by symfony/symfony v2.1.0, symfony/symfony v2.1.1, symfony/symfony v2.1.2, symfony/symfony v2.1.3, symfony/symfony v2.1.4, symfony/symfony v2.1.5, symfony/symfony v2.1.6.

My Composer.json

   "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.1.*@stable",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "dev-master",
        "symfony/framework-bundle": "dev-master",
        "symfony/dependency-injection": "dev-master",
        "symfony/doctrine-bridge": "dev-master",
        "symfony/config": "dev-master",
        "symfony/event-dispatcher": "dev-master",
        "symfony/http-kernel": "dev-master",
        "symfony/filesystem": "dev-master",
        "symfony/routing": "dev-master",
        "symfony/templating": "dev-master",
        "symfony/http-foundation": "dev-master",
        "symfony/translation": "dev-master",
        "symfony/stopwatch":  "dev-master",        
        "twig/extensions": "1.0.*@dev",
        "symfony/assetic-bundle": "2.1.*",
        "symfony/swiftmailer-bundle": "2.1.*",
        "symfony/monolog-bundle": "2.1.*",
        "sensio/distribution-bundle": "2.1.*",
        "sensio/framework-extra-bundle": "2.1.*",
        "sensio/generator-bundle": "2.1.*",
        "jms/security-extra-bundle": "dev-master",
        "jms/di-extra-bundle": "dev-master",
        "kriswallsmith/assetic": "1.1.*@dev",
        "doctrine/doctrine-fixtures-bundle": "dev-master",
        "doctrine/data-fixtures": "dev-master",
        "doctrine/migrations": "dev-master",
        "doctrine/doctrine-migrations-bundle": "dev-master",
        "friendsofsymfony/user-bundle": "dev-master",
        "stof/doctrine-extensions-bundle": "dev-master",
        "phpcr/phpcr": "dev-master",
        "doctrine/phpcr-odm": "dev-master",
        "doctrine/phpcr-bundle": "dev-master",
        "phpcr/phpcr-api-tests": "dev-master",
        "jackalope/jackalope-jackrabbit": "dev-master",
        "jackalope/jackalope-doctrine-dbal": "dev-master",
        "phpcr/phpcr-utils": "dev-master",
        "ext-midgard2": ">=10.05.6",
        "symfony-cmf/core-bundle": "dev-master",
        "symfony-cmf/content-bundle": "dev-master",
        "symfony-cmf/menu-bundle": "dev-master",
        "symfony-cmf/block-bundle": "dev-master",
        "symfony-cmf/routing-extra-bundle": "dev-master",
        "sonata-project/block-bundle": "dev-master",
        "symfony-cmf/routing": "dev-master",
        "symfony-cmf/tree-bundle": "dev-master",
        "symfony-cmf/tree-browser-bundle": "dev-master",
        "friendsofsymfony/jsrouting-bundle": "dev-master",
        "symfony-cmf/symfony-cmf": "dev-master",
        "symfony-cmf/simple-cms-bundle": "dev-master",
        "symfony-cmf/create-bundle": "dev-master",
        "midgard/createphp": "dev-master",
        "friendsofsymfony/rest-bundle":  "dev-master",
        "jms/serializer": "dev-master",
        "phpcollection/phpcollection": "dev-master",
        "jms/serializer-bundle":  "dev-master", 
        "sonata-project/jquery-bundle": "dev-master",
        "sonata-project/exporter": "dev-master",
        "sonata-project/doctrine-phpcr-admin-bundle": "dev-master",
        "sonata-project/admin-bundle": "dev-master",
        "sonata-project/doctrine-orm-admin-bundle":  "dev-master",
        "sonata-project/cache-bundle":  "dev-master",
        "sonata-project/intl-bundle":  "dev-master",
        "sonata-project/user-bundle": "dev-master",
        "sonata-project/doctrine-extensions": "dev-master",
        "sonata-project/easy-extends-bundle": "dev-master",
        "sonata-project/google-authenticator": "dev-master",
        "jms/payment-core-bundle": "master-dev",
        "ornicar/gravatar-bundle" : "dev-master",
        "knplabs/knp-paginator-bundle": "dev-master",
        "vich/uploader-bundle": "dev-master",
        "liip/imagine-bundle": "dev-master",
        "knplabs/gaufrette":"0.2.*@dev",
        "knplabs/knp-gaufrette-bundle" : "dev-master",
        "doctrine/common":">=2.3-dev"

    },

I don't know this is right place to raise this question, There is no issue or support on symfony/framework-bundle on git. So help me out.

Seldaek commented 11 years ago

You just can't require the framework-bundle dev-master together with symfony 2.1 since framework-bundle is included in symfony, and dev-master is 2.2 not 2.1. Removing the framework bundle requirement should fix it.

stof commented 11 years ago

and doctrine/doctrine-bundle dev-master is for Symfony 2.2 now (which is why you have an issue). Use 1.1.* for Symfony 2.1

gchokeen commented 11 years ago

Thank you so much for your explanation i just removed framework-bundle part from the composer. I downgrade the doctrine/doctrine-bundle to 1.1.x-dev.

        "symfony/framework-bundle": "dev-master",
        "symfony/dependency-injection": "dev-master",
        "symfony/doctrine-bridge": "dev-master",
        "symfony/config": "dev-master",
        "symfony/event-dispatcher": "dev-master",
        "symfony/http-kernel": "dev-master",
        "symfony/filesystem": "dev-master",
        "symfony/routing": "dev-master",
        "symfony/templating": "dev-master",
        "symfony/http-foundation": "dev-master",
        "symfony/translation": "dev-master",
        "symfony/stopwatch":  "dev-master",    

Now I getting

  Problem 1
    - Installation request for phpcr/phpcr 2.1.0-beta8 -> satisfiable by phpcr/phpcr 2.1.0-beta8.
    - symfony-cmf/core-bundle 1.0.x-dev requires phpcr/phpcr dev-master -> satisfiable by phpcr/phpcr dev-master.
    - Can only install one of: phpcr/phpcr 2.1.0-beta8, phpcr/phpcr dev-master.
    - Installation request for symfony-cmf/core-bundle 1.0.* -> satisfiable by symfony-cmf/core-bundle 1.0.x-dev.

Should I downgrade all dev-master version to some stable version. What is the best practice. Because each update is slowing down my development progress.

Seldaek commented 11 years ago

I think you just shouldn't specify all dependencies. I doubt you need phpcr/phpcr in there, it's already required by the cmf bundles so let them take care of that, that way you avoid conflicts in versions.

gchokeen commented 11 years ago

After downgrading

  "symfony-cmf/core-bundle": "1.0.x-dev",
  "phpcr/phpcr": "2.1.0-beta8",

update works with some error like

PHP Fatal error:  Declaration of Jackalope\Session::getNode() must be compatible with that of PHPCR\SessionInterface::getNode() in /var/www/contest/vendor/jackalope/jackalope/src/Jackalope/Session.php on line 39

I will check that. Probably needs to downgrade some other package.