pyrech / composer-changelogs

:notebook: Display better summary after Composer update
MIT License
589 stars 26 forks source link

Exception when installing "Undefined index: scheme" #31

Closed damienalexandre closed 8 years ago

damienalexandre commented 8 years ago

On version 1.3.0, when doing composer update of this:

{
    "name": "happyr/translation-bundle",
    "type": "symfony-bundle",
    "description": "Integrate Symfony with translations SaaS like http://localise.biz",
    "keywords": [],
    "homepage": "http://developer.happyr.com",
    "license": "MIT",
    "authors": [
        {
            "name": "Tobias Nyholm",
            "email": "tobias@happyr.com"
        }
    ],
    "require": {
        "php": ">=5.5.9",
        "symfony/symfony":"~2.7|~3.0",
        "sensio/framework-extra-bundle": "~2.7|~3.0",
        "php-http/httplug": "^1.0",
        "php-http/plugins": "^1.0",
        "php-http/client-implementation": "^1.0",
        "psr/log": "^1.0"
    },
    "require-dev": {
        "php-http/guzzle6-adapter": "^1.0",
        "phpunit/phpunit": "^5.2",
        "puli/composer-plugin": "1.0.0-beta9",
        "puli/repository": "1.0.0-beta9",
        "puli/discovery": "1.0.0-beta9",
        "puli/url-generator": "1.0-beta4",
        "php-http/mock-client": "^0.3.0"
    },
    "suggest": {
        "php-http/httplug-bundle": "To easier configure your httplug clients.",
        "happyr/auto-fallback-translation-bundle": "To automatically translate phrases that are missing form your secondary language."
    },
    "autoload": {
        "psr-4": {
            "Happyr\\TranslationBundle\\": "src/"
        }
    }
}

I get the following stack trace:

  [ErrorException]         
  Undefined index: scheme  

Exception trace:
 () at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/UrlGenerator/AbstractUrlGenerator.php:32
 Composer\Util\ErrorHandler::handle() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/UrlGenerator/AbstractUrlGenerator.php:32
 Pyrech\ComposerChangelogs\UrlGenerator\AbstractUrlGenerator->generateBaseUrl() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/UrlGenerator/GithubUrlGenerator.php:34
 Pyrech\ComposerChangelogs\UrlGenerator\GithubUrlGenerator->generateCompareUrl() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/OperationHandler/UpdateHandler.php:84
 Pyrech\ComposerChangelogs\OperationHandler\UpdateHandler->getOutput() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/Outputter.php:92
 Pyrech\ComposerChangelogs\Outputter->createOperationOutput() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/Outputter.php:61
 Pyrech\ComposerChangelogs\Outputter->getOutput() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/ChangelogsPlugin.php:78
 Pyrech\ComposerChangelogs\ChangelogsPlugin->postUpdate() at n/a:n/a
 call_user_func() at phar:///home/dalexandre/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:166
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///home/dalexandre/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:94
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///home/dalexandre/bin/composer.phar/src/Composer/Installer.php:332
 Composer\Installer->run() at phar:///home/dalexandre/bin/composer.phar/src/Composer/Command/UpdateCommand.php:173
 Composer\Command\UpdateCommand->execute() at phar:///home/dalexandre/bin/composer.phar/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at phar:///home/dalexandre/bin/composer.phar/vendor/symfony/console/Application.php:844
 Symfony\Component\Console\Application->doRunCommand() at phar:///home/dalexandre/bin/composer.phar/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at phar:///home/dalexandre/bin/composer.phar/src/Composer/Console/Application.php:166
 Composer\Console\Application->doRun() at phar:///home/dalexandre/bin/composer.phar/vendor/symfony/console/Application.php:123
 Symfony\Component\Console\Application->run() at phar:///home/dalexandre/bin/composer.phar/src/Composer/Console/Application.php:99
 Composer\Console\Application->run() at phar:///home/dalexandre/bin/composer.phar/bin/composer:43
 require() at /home/dalexandre/bin/composer.phar:25

Have fun Loick :)

pyrech commented 8 years ago

It should have already been fixed in the current dev-version :wink: Could you please test it? If it works for you, I will make a 1.4 release soon. Thank you!

damienalexandre commented 8 years ago

Installed dev-master, it does not work neither:

Running "puli build"

  [ErrorException]         
  Undefined index: scheme  

Exception trace:
 () at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/UrlGenerator/GitBasedUrlGenerator.php:32
 Composer\Util\ErrorHandler::handle() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/UrlGenerator/GitBasedUrlGenerator.php:32
 Pyrech\ComposerChangelogs\UrlGenerator\GitBasedUrlGenerator->generateBaseUrl() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/UrlGenerator/GithubUrlGenerator.php:40
 Pyrech\ComposerChangelogs\UrlGenerator\GithubUrlGenerator->generateCompareUrl() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/OperationHandler/UpdateHandler.php:84
 Pyrech\ComposerChangelogs\OperationHandler\UpdateHandler->getOutput() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/Outputter.php:100
 Pyrech\ComposerChangelogs\Outputter->createOperationOutput() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/Outputter.php:69
 Pyrech\ComposerChangelogs\Outputter->getOutput() at /home/dalexandre/.composer/vendor/pyrech/composer-changelogs/src/ChangelogsPlugin.php:95
 Pyrech\ComposerChangelogs\ChangelogsPlugin->postUpdate() at n/a:n/a
 call_user_func() at phar:///home/dalexandre/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:166
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///home/dalexandre/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:94
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///home/dalexandre/bin/composer.phar/src/Composer/Installer.php:332
 Composer\Installer->run() at phar:///home/dalexandre/bin/composer.phar/src/Composer/Command/UpdateCommand.php:173
 Composer\Command\UpdateCommand->execute() at phar:///home/dalexandre/bin/composer.phar/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at phar:///home/dalexandre/bin/composer.phar/vendor/symfony/console/Application.php:844
 Symfony\Component\Console\Application->doRunCommand() at phar:///home/dalexandre/bin/composer.phar/vendor/symfony/console/Application.php:192
 Symfony\Component\Console\Application->doRun() at phar:///home/dalexandre/bin/composer.phar/src/Composer/Console/Application.php:166
 Composer\Console\Application->doRun() at phar:///home/dalexandre/bin/composer.phar/vendor/symfony/console/Application.php:123
 Symfony\Component\Console\Application->run() at phar:///home/dalexandre/bin/composer.phar/src/Composer/Console/Application.php:99
 Composer\Console\Application->run() at phar:///home/dalexandre/bin/composer.phar/bin/composer:43
 require() at /home/dalexandre/bin/composer.phar:25

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

¯\_(ツ)_/¯