What are the steps to reproduce this issue?
- Create a BoxLang app:
coldbox create app myApp --boxlang
- Create a handler with the CFML flag:
coldbox create handler myHandler --noboxlang
- Observe the generated view file extension
What happens?
The handler and integration test correctly respect the --noboxlang flag (generating .cfc files), but the view is generated with the project's default extension (.bxm) instead of the requested .cfm:
INFO Created View [app\views\myHandler/index.bxm]
INFO Created Handler [app\handlers\myHandler.cfc]
INFO Created Integration Spec [tests\specs\integration\myHandlerTest.cfc]
The same issue occurs in reverse: in a CFML app (--cfml), running coldbox create handler myHandler --boxlang generates a .cfm view instead of .bxm, while the handler and test correctly get .bx extensions.
What were you expecting to happen?
The view file extension should match the language flag passed to create handler. With --noboxlang, the view should be index.cfm, and with --boxlang, it should be index.bxm.
Any logs, error output, etc?
No errors, the wrong file is silently created. The workaround is to manually delete the incorrect view and run coldbox create view myHandler/index --noboxlang (or --boxlang) explicitly afterward.
What versions are you using?
Operating System: Windows 11 Pro 25H2
Package Version: 8.12.0+30
What are the steps to reproduce this issue?
coldbox create app myApp --boxlangcoldbox create handler myHandler --noboxlangWhat happens?
The handler and integration test correctly respect the
--noboxlangflag (generating.cfcfiles), but the view is generated with the project's default extension (.bxm) instead of the requested.cfm:The same issue occurs in reverse: in a CFML app (
--cfml), runningcoldbox create handler myHandler --boxlanggenerates a.cfmview instead of.bxm, while the handler and test correctly get.bxextensions.What were you expecting to happen?
The view file extension should match the language flag passed to
create handler. With--noboxlang, the view should beindex.cfm, and with--boxlang, it should beindex.bxm.Any logs, error output, etc?
No errors, the wrong file is silently created. The workaround is to manually delete the incorrect view and run
coldbox create view myHandler/index --noboxlang(or--boxlang) explicitly afterward.What versions are you using?
Operating System: Windows 11 Pro 25H2
Package Version: 8.12.0+30