totten / civix

CiviCRM Extension Builder
http://civicrm.org/
Other
56 stars 56 forks source link

Failed to locate scan-classes@1/mixin.php #282

Closed artfulrobot closed 1 year ago

artfulrobot commented 1 year ago

Following the instructions at

https://docs.civicrm.org/dev/en/latest/framework/services/

Extensions must enable the scan-classes mixin.

If you are developing an extension with auto-registered services, then you must enable the scan-classes mixin. This can be done with civix:

civix mixin --enable='scan-classes@1.0.0'

But I get the following

civix mixin --enable='scan-classes@1.0.0'

In Mixlib.php line 184:
  Failed to locate scan-classes@1/mixin.php (mixlibDir=phar:///buildkit/bin/civix/extern/mixin, mixlibUrl=)
mixin [--disable [DISABLE]] [--enable [ENABLE]] [--enable-all] [--disable-all] [--yes] [--] [<key>]

Is this a bug? civix v22.05.2

demeritcowboy commented 1 year ago

Looks like you need 22.06 at least: https://github.com/totten/civix/commit/1f05266d99e667538f0735e41a6cd487debe08ec. And as I understand it you'll need to target civi 5.51+ but I'm not as clear on that.

artfulrobot commented 1 year ago

Sorry, outdasted civix. I've not worked out how to update it easily from within buildkit. civi-download-tools seems not to update it.

Anyway, got updated one now and the error is gone. Thanks for your time and input, @demeritcowboy