egeloen / IvoryLuceneSearchBundle

Provides a Zend Lucene Search integration for your Symfony2 project.
MIT License
29 stars 11 forks source link

Composer issue #6

Closed lionelbzv closed 10 years ago

lionelbzv commented 10 years ago

I've got a composer issue as i was trying to make a "composer update" on my project. I've not modified anything since the last successful installation.

Loading composer repositories with package information
Updating dependencies (including require-dev)                        
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for myproject-sf2/myproject 2.3.x-dev -> satisfiable by myproject-sf2/myproject[2.3.x-dev].
    - Removal request for zendframework/zend-stdlib == 2.0.0.0-RC5
    - Removal request for zendframework/zend-stdlib == 2.0.0.0-RC5
    - Removal request for zendframework/zend-stdlib == 2.0.0.0-RC5
    - myproject-sf2/myproject 2.3.x-dev requires zendframework/zendsearch 2.0.0-rc5 -> satisfiable by zendframework/zendsearch[2.0.0rc5].
    - zendframework/zendsearch 2.0.0rc5 requires zendframework/zend-stdlib 2.0.0rc5 -> satisfiable by zendframework/zend-stdlib[2.0.0-rc5], zendframework/zendframework[2.0.0-rc5].
    - zendframework/zendsearch 2.0.0rc5 requires zendframework/zend-stdlib 2.0.0rc5 -> satisfiable by zendframework/zend-stdlib[2.0.0-rc5], zendframework/zendframework[2.0.0-rc5].
    - Removal request for zendframework/zend-stdlib == 2.0.0.0-RC5

After removing egeolen & zend previously installed, the "composer update" works fine (=> it installs correctly the libs), so the bug is only for updating existing files.

egeloen commented 10 years ago

It seems a Composer issue. If composer is able to install them, the package dependencies should be right...

alexkhor commented 10 years ago

I have error with Composer too. I'm trying to install the bundle.

in composer.json:

"egeloen/lucene-search-bundle": "1.0.*@dev",

error:

  Problem 1
    - Installation request for egeloen/lucene-search-bundle 1.0.*@dev -> satisfiable by egeloen/lucene-search-bundle[1.0.x-dev].
    - egeloen/lucene-search-bundle 1.0.x-dev requires zendframework/zendsearch 2.0.0-rc5 -> no matching package found.
  Problem 2
    - egeloen/lucene-search-bundle 1.0.x-dev requires zendframework/zendsearch 2.0.0-rc5 -> no matching package found.
    - symfony/framework-standard-edition 2.2.x-dev requires egeloen/lucene-search-bundle 1.0.*@dev -> satisfiable by egeloen/lucene-search-bundle[1.0.x-dev].
    - Installation request for symfony/framework-standard-edition 2.2.x-dev -> satisfiable by symfony/framework-standard-edition[2.2.x-dev].

Composer can't find zendframework/zendsearch 2.0.0-rc5. What can I do?

egeloen commented 10 years ago

I'm sorry guys but I can't do anything myself here. It seems definitively a Composer issue as the 2.0.0-RC5 release exists on the zend search repo...

egeloen commented 10 years ago

@alexkhor Your need to add all lines described in the installation doc.

egeloen commented 10 years ago

@StudioEcho Have you try to replace to replace "zendframework/zend-stdlib": "2.2.5 as 2.0.0-rc5"by "zendframework/zend-stdlib": "2.0.0-rc5". It changes the stdlib version to 2.0.0-rc5 but if it fixes your issue then it should have an issue in Composer about self.version resolving.

alexkhor commented 10 years ago

Thanks a lot! My fault.

lionelbzv commented 10 years ago

Try your patch unsuccessfully, with this error:

The requested package zendframework/zend-stdlib 2.0.0-rc5 could not be found

egeloen commented 10 years ago

Okay after reading all composer.json on all repos, can you try with the following config:

{
    "require": {
        "egeloen/lucene-search-bundle": "dev-master",
        "zendframework/zendsearch": "dev-master",
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/zendframework/ZendSearch"
        }
    ]
}
lionelbzv commented 10 years ago

i've got

Loading composer repositories with package information
Updating dependencies (including require-dev)                       
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - zendframework/zendsearch 2.0.0rc5 requires zendframework/zend-stdlib 2.0.0rc5 -> no matching package found.
    - zendframework/zendsearch 2.0.0rc5 requires zendframework/zend-stdlib 2.0.0rc5 -> no matching package found.
    - myproject requires egeloen/lucene-search-bundle dev-master -> satisfiable by egeloen/lucene-search-bundle[dev-master].
    - egeloen/lucene-search-bundle dev-master requires zendframework/zendsearch 2.0.0-rc5 -> satisfiable by zendframework/zendsearch[2.0.0rc5].
    - egeloen/lucene-search-bundle dev-master requires zendframework/zendsearch 2.0.0-rc5 -> satisfiable by zendframework/zendsearch[2.0.0rc5].
    - Installation request for myproject -> satisfiable by myproject[2.3.x-dev].
egeloen commented 10 years ago

@StudioEcho I just push 9269403ad990f8a5e4f369014c92f6bd38ec2fab which should fix your issue. Can you give it a try?

lionelbzv commented 10 years ago

Yes, your push has fixed this issue, thanks!