Page 1 of 1

composer-asset-plugin and components not detected correctly

PostPosted: May 19th, 2018, 4:12 am
by urosg
Hi,

I recently updated VS2017 to latest version (15.7.1) and noticed that with a new project there were missing dependencies detected which were actually not missing.

I suspected that it has to do with the VS version but actually is the PHPtools.

I had now tested with old versions I had still on my disk from previous installations and tried with 1.24.10015 which works OK.

Then I downloaded 1.26.10601 which breaks the correct support.
Version 1.27.10773 still broken.
Version 1.28.10839 still broken.

Now looking at the changelog I suspect this got broken in version 1.26.

Please check and fix as soon as possible.

Thank you!

Re: composer-asset-plugin and components not detected correc

PostPosted: May 19th, 2018, 4:18 am
by urosg
I now also tested with 1.25.10474 version and in this version it works. So in 1.26 it breaks.

Please see http://support.devsense.com/viewtopic.php?f=21&t=1748&p=7896&hilit=composer+bower#p7896 where I already reported the same problem and you fixed it / this was in 1.19.8685 version.

Re: composer-asset-plugin and components not detected correc

PostPosted: May 21st, 2018, 8:58 am
by Miloslav Beno
Hello!

Thanks for the feedback. Let me check this and get back to you asap.

Thanks!

Re: composer-asset-plugin and components not detected correc

PostPosted: May 21st, 2018, 11:00 am
by Miloslav Beno
Hello,

Could you please tell me how to reproduce it?

I've created project with yii2 framework and I can see all the composer packages:

yii - composer.png


Thanks!

Re: composer-asset-plugin and components not detected correc

PostPosted: May 22nd, 2018, 7:31 am
by urosg
Create new project / directory:

use the composer.json:
Code: Select all
{
  "name": "test-project",
  "description": "TEST Project",
  "license": "proprietary",
  "require": {
    "php": ">=5.4.0",
    "yiisoft/yii2": ">=2.0",
    "yiisoft/yii2-bootstrap": ">=2.0",
    "yiisoft/yii2-swiftmailer": ">=2.0",
    "yiisoft/yii2-jui": ">=2.0",
    "fxp/composer-asset-plugin": "~1.0"
  },
  "suggest": {
    "bower-asset/flexslider": "*"

  },
  "require-dev": {
    "yiisoft/yii2-debug": "*",
    "yiisoft/yii2-gii": "*",
    "yiisoft/yii2-faker": "*"
  },
  "config": {
    "fxp-asset": {
      "installer-paths": {
        "bower-asset-library": "vendor/bower",
        "npm-asset-library": "vendor/npm"
      }
    }
  }
}


in command line first run:
Code: Select all
php composer.phar global require "fxp/composer-asset-plugin:*"


then run
Code: Select all
php composer.phar update


then create new project from existing code and you have missing dependencies shown.

Re: composer-asset-plugin and components not detected correc

PostPosted: May 22nd, 2018, 8:57 am
by urosg
This goes for old projects, with "brand new" projects the composer has a new repository for bower/npm assets and with that this dependency problems don't exist.

Re: composer-asset-plugin and components not detected correc

PostPosted: May 22nd, 2018, 3:24 pm
by Miloslav Beno
Hi,

I see, thanks for the steps!

I will not be able to take a look at it this week, because of a business trip. But once I'm back I'm on it.

Thanks again!

Re: composer-asset-plugin and components not detected correc

PostPosted: June 1st, 2018, 5:53 am
by urosg
Hi,

did you perhaps get around to checking this issue?

Thanks!