Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
When running the ‘coldbox create resource’ command, the following error is thrown.
> coldbox create resource rants
INFO Generating (rants) resources...
INFO --> Generated (rants) Handler: [/cb0tohero/handlers//rants.cfc]
ERROR (6.0.0+00787)
variable [OPEN] doesn't exist
/modules/coldbox-cli/commands/coldbox/create/resource.cfc: line 205
203: directory: viewsDirectory,
204: force : force,
205: open : open
206: )
207: .run();
called from /modules/coldbox-cli/commands/coldbox/create/resource.cfc: line 208
called from /system/services/CommandService.cfc: line 443
called from /system/services/CommandService.cfc: line 225
called from /system/Shell.cfc: line 865
called from /system/Shell.cfc: line 680
called from /system/Bootstrap.cfm: line 165
Activity
Show:
Jason DaigerMarch 20, 2024 at 10:08 AM
@Luis Majano Thanks for the quick resolution. I rant into another issue when testing after updating the cli.
ERROR (6.0.0+00787)
Component [private_var_root__CommandBox.cfml.modules.coldbox-cli.commands.coldbox.create.resource] has no accessible Member with name [BREAK]
/modules/coldbox-cli/commands/coldbox/create/resource.cfc: line 314
312: var routerContent = fileRead( routerPath ).replaceNoCase(
313: "// @app_routes@",
314: routerCode & variables.break
315: );
316: fileWrite( routerPath, routerContent );
called from /system/services/CommandService.cfc: line 443
called from /system/services/CommandService.cfc: line 225
called from /system/Shell.cfc: line 865
called from /system/Shell.cfc: line 680
called from /system/Bootstrap.cfm: line 165
Let me know if you would like me to create another ticket.
Luis MajanoMarch 20, 2024 at 9:45 AM
Released as v7.4.0, run update coldbox-cli --force
When running the ‘coldbox create resource’ command, the following error is thrown.
> coldbox create resource rants INFO Generating (rants) resources... INFO --> Generated (rants) Handler: [/cb0tohero/handlers//rants.cfc] ERROR (6.0.0+00787) variable [OPEN] doesn't exist /modules/coldbox-cli/commands/coldbox/create/resource.cfc: line 205 203: directory: viewsDirectory, 204: force : force, 205: open : open 206: ) 207: .run(); called from /modules/coldbox-cli/commands/coldbox/create/resource.cfc: line 208 called from /system/services/CommandService.cfc: line 443 called from /system/services/CommandService.cfc: line 225 called from /system/Shell.cfc: line 865 called from /system/Shell.cfc: line 680 called from /system/Bootstrap.cfm: line 165