Describe the bug
The CLI module fails to load due to a syntax error in the TestMigrationService model. Error: Invalid Syntax Closing [}] not found
This prevents the entire CLI module from loading.
To Reproduce
- Install Wheels CLI:
box install wheels-cli or simply link latest CLI from develop branch to commandBox
- Run
box reload or start CommandBox
- Observe the error during module loading
Expected behavior
The CLI module should load successfully without errors.
Desktop:
- OS: macOS
- Wheels Branch: Develop
Additional context
File: cli/src/models/TestMigrationService.cfc:556
Problematic Code:
pattern = 'assert\s*\(\s*"structKeyExists\s*\(\s*([^,]+),\s*["\']([^"\']+)["\']\s*\)"\s*\)',
Root Cause: Complex regex pattern containing nested escaped quotes is causing Adobe CF parser issues during module initialization. The combination of single quotes, double quotes, and escaped quotes within the regex pattern confuses the parser.
Suggested Fix: Rewrite the pattern using different quote escaping:
pattern = "assert\s*\(\s*""structKeyExists\s*\(\s*([^,]+),\s*[']([^']+)[']\s*\)""\s*\)",
Describe the bug
The CLI module fails to load due to a syntax error in the TestMigrationService model. Error:
Invalid Syntax Closing [}] not foundThis prevents the entire CLI module from loading.
To Reproduce
box install wheels-clior simply link latest CLI fromdevelopbranch tocommandBoxbox reloador start CommandBoxExpected behavior
The CLI module should load successfully without errors.
Desktop:
Additional context
File:
cli/src/models/TestMigrationService.cfc:556Problematic Code:
Root Cause: Complex regex pattern containing nested escaped quotes is causing Adobe CF parser issues during module initialization. The combination of single quotes, double quotes, and escaped quotes within the regex pattern confuses the parser.
Suggested Fix: Rewrite the pattern using different quote escaping: