mattrogowski
Well-known member
If you try and install an addon on the CLI but haven't installed the composer packages first, you get an error
If you have an addon installed and try and build a release with listeners enabled and haven't installed the packages, you get an error
I expect that disabling listeners is not the best solution to the original error I had, however I think it'd still be helpful to explicitly check
tl;dr when trying to install an addon or building a release without installing the packages, have a nice handled error about the missing composer directory so it's clear that needs installing.
This is only a developer-centric issue but could probably be handled a bit better than it is.
The site is currently being upgraded. Please check back later.
repeated several times. As it wasn't obvious this was due to missing composer packages I disabled listeners and installed the addon and then built a release.If you have an addon installed and try and build a release with listeners enabled and haven't installed the packages, you get an error
[InvalidArgumentException]Composer Autoload path (src/addons/.../vendor/composer) does not appear to be a valid composer directory
, as I guess it runs some of the addon code. However with listeners disabled it just installs and builds.I expect that disabling listeners is not the best solution to the original error I had, however I think it'd still be helpful to explicitly check
vendor/composer
exists before doing the build instead of an exception being thrown when it can't load it. Or, maybe better, check vendor/composer
exists before you try and install or upgrade the addon. The "The site is currently being upgraded" error isn't very clear, if it output an error saying something like "Missing composer_autoload directory" or something, would be clear that needs to happen first.tl;dr when trying to install an addon or building a release without installing the packages, have a nice handled error about the missing composer directory so it's clear that needs installing.
This is only a developer-centric issue but could probably be handled a bit better than it is.
Last edited:
Upvote
0