Open donbellamy opened 6 years ago
Reverting back to 1.7.1 resolves the issue.
Hi,
I just tested this with CommandBox 4.0.0+01015 and installed the module via Commandbox, too (not using my dev version). No error on server start or when creating a new server.
Did you try reloading CommandBox after installing the 1.8.0 update?
Cheers
Chris
@donbellamy @chrisschmitz I never saw this issue or I would have commented back in 2018. The issue is that the cached metadata in CommandBox for the CFCs in the module needs cleared to know about the additional WireBox injections. All you need to do is run the
reload
command in the CLI and it should work. When installing a module, the shell is automatically reloaded, but when updating an existing module, that doesn't always happen.
After upgrading to 1.8.0, getting this error when trying to use the command "server start":
ERROR (4.0.0+01015)
Component [commandbox-hostupdater.models.HostupdaterService] has no accessible Member with name [CONSOLELOGGER]
D:\CommandBox\cfml\modules\commandbox-hostupdater\models\HostupdaterService.cfc: line 32 30: 31: for( var hostname in arguments.hostnames ) { 32: variables.consoleLogger.info( "Adding host '#hostname#' to your hosts file!" ); 33: // remove any line matching the current host name 34: // in order to avoid duplicate entries called from D:\CommandBox\cfml\modules\commandbox-hostupdater\ModuleConfig.cfc: line 43