Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer\Package\Version\VersionParser::parseLinks is deprecated #4260

Closed
samdark opened this issue Jul 15, 2015 · 28 comments
Closed

Composer\Package\Version\VersionParser::parseLinks is deprecated #4260

samdark opened this issue Jul 15, 2015 · 28 comments

Comments

@samdark
Copy link

samdark commented Jul 15, 2015

Getting Composer\Package\Version\VersionParser::parseLinks is deprecated warning using latest version. Verified at Windows 8.1 and 7.

Everything else works fine though.

$ composer self-update
Updating to version 92faf1c7a83a73794fb914a990be435e1df373ca.
    Downloading: 100%
Use composer self-update --rollback to return to version c36d2a2e501315934b6968efa3cea41dd27f2511

$ composer update
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
Deprecation Notice: Composer\Package\Version\VersionParser::parseLinks is deprecated. Use \Composer\Package\Loader\ArrayLoader::parseLinks() instead in phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Package/Version/VersionParser.php:226
@bdart
Copy link

bdart commented Jul 15, 2015

+1

2 similar comments
@jdrsantos
Copy link

+1

@kroshilin
Copy link

+1

@mervick
Copy link

mervick commented Jul 15, 2015

+1, Ubuntu 14.04

@staabm
Copy link
Contributor

staabm commented Jul 15, 2015

Creating a Patch and open a PR would be worthwile instead of adding "+1" here..

@Merujan99
Copy link

+1

1 similar comment
@intpp
Copy link

intpp commented Jul 15, 2015

👍

@samdark
Copy link
Author

samdark commented Jul 15, 2015

That's actually quite weird since Composer\Package\Version\VersionParser::parseLinks isn't called (at least directly) in any current code.

@raoul2000
Copy link

+1

@cs278
Copy link
Contributor

cs278 commented Jul 15, 2015

Probably a script or plugin using the deprecated method, -vvv may show a backtrace which will help tracking it down. Otherwise can anyone share their composer.json?

@accrossang
Copy link

+1, Windiws 8.1 && Mint 17.1

@MassimilianoMancini
Copy link

Here is the -vvv log both for self-update and update: http://pastebin.com/sGLnbf66. It seems to be a problem with https://github.com/francoispluchino/composer-asset-plugin package. (win7)

EDIT:
I've searched for parseLinks inside fxp package, 2 founds: https://github.com/francoispluchino/composer-asset-plugin/search?utf8=%E2%9C%93&q=parseLinks

Here my composer.json

{
    "name": "yiisoft/yii2-app-basic",
    "description": "Yii 2 Basic Application Template",
    "keywords": ["yii2", "framework", "basic", "application template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "*",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "kartik-v/yii2-widget-fileinput": "*",
        "kartik-v/yii2-widget-datepicker": "*",
        "kartik-v/yii2-widget-select2": "*",
        "kartik-v/yii2-widget-alert": "*",
        "kartik-v/yii2-mpdf": "*"
    },
    "require-dev": {
        "yiisoft/yii2-codeception": "*",
        "yiisoft/yii2-debug": "*",
        "yiisoft/yii2-gii": "*",
        "yiisoft/yii2-faker": "*"
    },
    "config": {
        "process-timeout": 1800
    },
    "scripts": {
        "post-create-project-cmd": [
            "yii\\composer\\Installer::postCreateProject"
        ]
    },
    "extra": {
        "yii\\composer\\Installer::postCreateProject": {
            "setPermission": [
                {
                    "runtime": "0777",
                    "web/assets": "0777",
                    "yii": "0755"
                }
            ],
            "generateCookieValidationKey": [
                "config/web.php"
            ]
        },
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    }
}

@huanh
Copy link

huanh commented Jul 16, 2015

+1

@deK1tErminAte
Copy link

+1, Ubuntu 14.04 LTS

@andreybolonin
Copy link
Contributor

+1, Ubuntu 15.04, composer 92faf1c version

@AnatolyRugalev
Copy link

@rtutin
Copy link

rtutin commented Jul 16, 2015

+1, and composer work very slow, may be its fxp/composer-asset-plugin

@alcohol
Copy link
Member

alcohol commented Jul 16, 2015

To clarify, this warning is triggered by external utilities (installers/plugins/etc) that call a method that is now marked as deprecated. Please determine which respective utility is causing these warnings, and kindly submit an issue to the maintainers of said utility.

Also of note: this is only a deprecation warning, it doesn't actually break anything. The method is currently still backwards compatible.

@staabm
Copy link
Contributor

staabm commented Jul 16, 2015

@alcohol it would be cool if those warnings would come with a backtrace, so we can identify the user of the deprecated method.

@alcohol
Copy link
Member

alcohol commented Jul 16, 2015

I believe you will get a backtrace if you run in verbose mode (-v). I could be mistaken though.

@samdark samdark closed this as completed Jul 16, 2015
@samdark
Copy link
Author

samdark commented Jul 16, 2015

OK. Overall, that's not the issue of Composer itself.

@owencooney
Copy link

+1

3 similar comments
@ivan-kulikov-dev
Copy link

+1

@Tahiaji
Copy link

Tahiaji commented Jul 20, 2015

+1

@ruslan71
Copy link

+1

@alcohol
Copy link
Member

alcohol commented Jul 20, 2015

What's with all the +1? :-(

@lukebee
Copy link

lukebee commented Jul 20, 2015

+1

@Seldaek
Copy link
Member

Seldaek commented Jul 20, 2015

Please check fxpio/composer-asset-plugin#133 for a solution, once this is merged users of the composer-asset-plugin should upgrade it.

@composer composer locked and limited conversation to collaborators Jul 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests