fix(cli): wheels new scaffolded apps fail to boot#2096
Merged
Conversation
The `wheels new` template was missing 14 files that the framework hard-includes at startup: app/global/functions.cfm (Global.cfc:3404), app/views/helpers.cfm (Controller.cfc:140), and 12 event handlers under app/events/ (onapplicationstart.cfc:360, EventMethods.cfc). Without these, onApplicationStart threw before setting application.wo, and the cascading onError failure surfaced only "key [WO] doesn't exist" — hiding the real root cause. Also hardens installWheelsFramework to abort scaffolding (with a clear error and cleanup) when no framework source is found, instead of silently creating a broken app. Adds resolveFrameworkSource() with three fallback paths: WHEELS_FRAMEWORK_PATH env var, project root walk-up, and module root walk-up. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced May 12, 2026
Merged
This was referenced May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wheels newtemplate was missing 14 stub files that the framework hard-includes at boot (app/global/functions.cfm,app/views/helpers.cfm, and 12app/events/*.cfmhandlers). The first missing file crashesonApplicationStartbeforeapplication.wois set, thenonErrorcascades into the misleading "key [WO] doesn't exist".cli/lucli/templates/app/matching the main repo's conventionsinstallWheelsFrameworkto abort scaffolding (with cleanup) when no framework source is found, instead of silently creating a broken appresolveFrameworkSource()with three fallback paths:WHEELS_FRAMEWORK_PATHenv var → project root walk-up → module root walk-upNewCommandTemplateSpec.cfc) asserting every required stub file is presentTest plan
/tmpdirectory → app renders "Welcome to testapp", no errorsWHEELS_FRAMEWORK_PATHenv var override → scaffolding succeeds🤖 Generated with Claude Code