symfony2admingenerator / GeneratorBundle

Admingenerator for Symfony. Parse YAML files to build customized backend.
MIT License
67 stars 29 forks source link

Error trying to install symfony2admingenerator/generator-bundle #259

Closed Aetherall closed 8 years ago

Aetherall commented 8 years ago

Hi!

When i try to : composer require symfony2admingenerator/generator-bundle I get this error :

Using version ^2.0 for symfony2admingenerator/generator-bundle
./composer.json has been updated
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
    - The requested package symfony2admingenerator/generator-bundle No version set (parsed as 1.0.0) could not be found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

Does that mean I have to set a version to install? If yes, have I to do it in composer.json? where?

Thanks!!

bobvandevijver commented 8 years ago

I'm not sure where this comes from. Can you to add the following to your composer.json?

"symfony2admingenerator/generator-bundle": "~2.0",

You should be able to update this bundle specific by running composer update symfony2admingenerator/generator-bundle

Aetherall commented 8 years ago

Once my .json edited I ran composer update symfony2admingenerator/generator-bundle and get the exact same error :/

Aetherall commented 8 years ago

Maybe I can install bundles manually, by moving folders in the right place but I don't know where the doctrine bundle have to be

bobvandevijver commented 8 years ago

I've just tested it in a clean directory:

$ mkdir testrepo && cd testrepo
$ php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
$ php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === 'fd26ce67e3b237fffd5e5544b45b0d92c41a4afe3e3f778e942e43ce6be197b9cdc7c251dcde6e2a52297ea269370680') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); }"
$ php composer-setup.php
$ php -r "unlink('composer-setup.php');"
$ php composer.phar require symfony2admingenerator/generator-bundle

This worked perfectly for me. You either are using an older version of composer, or you have a problem in your composer.json file. The problem is not related to this bundle.