Coldbox Create Resource - 'open' variable doesn't Exists

Description

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

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

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Fix versions

Priority

Components

Sentry

Created March 19, 2024 at 11:46 PM
Updated 4 days ago
Resolved March 20, 2024 at 9:31 AM

Flag notifications