Elao / WebProfilerExtraBundle

Adding routing, container, assetic & twig information in the web profiler
http://www.elao.com
MIT License
262 stars 48 forks source link

unable to install on symfony 2.1 #28

Closed mikeSimonson closed 11 years ago

mikeSimonson commented 11 years ago

Hi,

It looks like there is a problem with the requirement in composer.json. "symfony/framework-bundle": "~2.2", You require the framework bundle to 2.2 version and it's thus not installable on symfony 2.1.* I get

> composer update elao/web-profiler-extra-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for elao/web-profiler-extra-bundle dev-master -> satisfiable by elao/web-profiler-extra-bundle dev-master.
    - Conclusion: remove symfony/symfony v2.1.7
    - elao/web-profiler-extra-bundle dev-master requires symfony/framework-bundle >=2.2,<3.0 -> satisfiable by symfony/symfony 2.2.x-dev, symfony/symfony 2.3.x-dev, symfony/framework-bundle 2.2.x-dev, symfony/framework-bundle 2.3.x-dev.
    - don't install symfony/framework-bundle 2.2.x-dev|don't install symfony/symfony v2.1.7
    - don't install symfony/framework-bundle 2.3.x-dev|don't install symfony/symfony v2.1.7
    - Can only install one of: symfony/symfony v2.1.7, symfony/symfony 2.2.x-dev.
    - Can only install one of: symfony/symfony v2.1.7, symfony/symfony 2.3.x-dev.
    - Installation request for symfony/symfony 2.1.7 -> satisfiable by symfony/symfony v2.1.7.

I saw that you have a a 2.1 branch but didn't found a way to tell composer to go there instead of the main one. And if it's what should be done then the readme.md should be updated too.

Thanks

benji07 commented 11 years ago

You need to write "elao/web-profiler-extra-bundle": "2.1.*@dev" inside your composer.json

mikeSimonson commented 11 years ago

Nice it worked perfectly. What does that @dev mean to composer ?

benji07 commented 11 years ago

Without the @dev it will use a tagged version. You can remove it if you specify the minimum stability inside composer.json http://getcomposer.org/doc/04-schema.md#minimum-stability

mikeSimonson commented 11 years ago

I just checked and it looks it was because I tried

 "elao/web-profiler-extra-bundle": "2.1"

And

 "elao/web-profiler-extra-bundle": "2.1*"

But not

 "elao/web-profiler-extra-bundle": "2.1.*"

I thought it might be a possible explanation because I already have

"minimum-stability": "dev",

in my composer.json

Now I am at loss understanding what composer is tracking. I taught he was looking for tags but you don't have any tags. How does composer got that he had to look for a branch 2.1 when you gave him 2.1.* and that he didn't got it when i tried 2.1 ?

tristanbes commented 11 years ago

should be fixed by #29