Describe the bug
When loading the Wheels CLI module, the wheels assets init command fails to load with the error: Invalid Identifier, the following character cannot be part of an identifier [&]
This occurs during module initialization before any user command runs.
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/commands/wheels/assets/init.cfc:250
Problematic Code:
content &= chr(10) & "# Vite build output" & chr(10);
Root Cause: Adobe ColdFusion parser has issues with &= compound assignment when the right-hand side contains string concatenation with &. The # character inside a string being concatenated with &= is causing the parser to misinterpret the expression.
Suggested Fix: Replace &= with explicit assignment:
content = content & chr(10) & "## Vite build output" & chr(10);
Describe the bug
When loading the Wheels CLI module, the
wheels assets initcommand fails to load with the error:Invalid Identifier, the following character cannot be part of an identifier [&]This occurs during module initialization before any user command runs.
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/commands/wheels/assets/init.cfc:250Problematic Code:
Root Cause: Adobe ColdFusion parser has issues with
&=compound assignment when the right-hand side contains string concatenation with&. The#character inside a string being concatenated with&=is causing the parser to misinterpret the expression.Suggested Fix: Replace
&=with explicit assignment: