This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258264 - Composer behavior changed
Summary: Composer behavior changed
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Composer (show other bugs)
Version: 8.0.2
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 258379 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-03-07 01:34 UTC by Fruchuxs
Modified: 2016-03-16 06:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fruchuxs 2016-03-07 01:34:47 UTC
Hello,

the behavior of the composer "show" command has been changed. You now need the --all parameter to show up the information about a library who is not listed in the composer.json. So the Netbeans composer integration is broken.

To reproduce:
Project -> Composer -> Add Dependency -> Search for a Library and just click one of the libs who is NOT listed in the composer.json.

You will get the following composer error:
[InvalidArgumentException]            
Package symfony/serializer not found


See also:
https://github.com/composer/composer/issues/5015
Comment 1 Tomas Mysik 2016-03-07 06:53:36 UTC
Thanks for catching that! Unfortunately, issue [1] is still not fixed by Composer so these situations can easily happen.

Thanks.
[1] https://github.com/composer/composer/issues/1490
Comment 2 Tomas Mysik 2016-03-07 08:30:40 UTC
Fixed now, please verify. Thanks.

http://hg.netbeans.org/web-main/rev/2b4259abcbfd
Comment 3 Quality Engineering 2016-03-08 02:09:36 UTC
Integrated into 'main-silver', will be available in build *201603080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2b4259abcbfd
User: Tomas Mysik <tmysik@netbeans.org>
Log: #258264 - Composer behavior changed
Comment 4 Tomas Mysik 2016-03-15 14:41:23 UTC
*** Bug 258379 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Mysik 2016-03-15 14:42:39 UTC
Please, does it work for you in a dev build of NetBeans? Could anyone of you verify this issue?

Thanks.
Comment 6 teelo 2016-03-15 17:24:58 UTC
Thomas, I hereby confirm the bug is gone in the latest dev version (see build below). Thanks for clarifying!

Product Version: NetBeans IDE Dev (Build 201603150001)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 8.1 version 6.3 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\Who\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Who\AppData\Local\NetBeans\Cache\dev
Comment 7 Tomas Mysik 2016-03-16 06:31:17 UTC
Thanks for verification!