Skip to content

fix(cli): escape literal # in resolveFrameworkSourceOrFail help text - #2298

Merged
bpamiri merged 1 commit into
developfrom
peter/fix-resolve-framework-cfml-hash
Apr 25, 2026
Merged

fix(cli): escape literal # in resolveFrameworkSourceOrFail help text#2298
bpamiri merged 1 commit into
developfrom
peter/fix-resolve-framework-cfml-hash

Conversation

@bpamiri

@bpamiri bpamiri commented Apr 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Two help-text lines added in #2294 contained a single literal # (a shell-comment marker shown to users in the manual-recovery instructions). CFML treats # as the start of a #expr# interpolation, so Lucee parsed the strings as unterminated interpolations and Module.cfc failed to compile:

[ERROR] lucee.transformer.cfml.script.AbstrCFMLScriptTransformer$ComponentTemplateException:
  Invalid Syntax Closing [#] not found, at [3540:22] in
  [out("       # Pick the wheels-core-<version>.zip for the latest release at:");]

This broke the post-merge Wheels Snapshots run on develop (run 24922776182) — specifically the Smoke Test Installed Distribution job that #2294 added to catch exactly this class of distribution-time regression. The smoke test did its job; this PR addresses what it found.

Fix

Doubled # to ## on the two affected lines — CFML's literal-hash escape.

The other # references in the surrounding block (#appName#, #candidate#, #projectCandidate#) are proper interpolations with matched pairs and remain unchanged.

Test plan

  • CI green on this PR
  • After merge, next Wheels Snapshots run on develop passes the Smoke Test Installed Distribution job
  • Manual sanity: wheels new from a context where framework source is missing now prints the recovery instructions instead of throwing a CFML compile error

🤖 Generated with Claude Code

Two help-text lines added in #2294 contained a single literal `#`
(shell-comment marker shown in the manual-recovery instructions).
CFML treats `#` as the start of a `#expr#` interpolation, so Lucee
parsed `# Pick the wheels-core-<version>.zip…` as an unterminated
interpolation and failed Module.cfc compilation:

    Invalid Syntax Closing [#] not found, at [3540:22]

This broke the post-merge Wheels Snapshots run on develop — the
"Smoke Test Installed Distribution" job in the same release workflow
the original PR added to catch exactly this class of regression.

Doubled `#` to `##` on both lines (CFML's literal-hash escape).
The other `#` references in the surrounding block (`#appName#`,
`#candidate#`, `#projectCandidate#`) are proper interpolations and
remain unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bpamiri
bpamiri merged commit a7005f1 into develop Apr 25, 2026
4 checks passed
@bpamiri
bpamiri deleted the peter/fix-resolve-framework-cfml-hash branch April 25, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant