Login for more options
Incorrect compiler error when CFCOMPONENT tag found in CFM file
If one inadvertantly has a <cfcomponent> tag in a CFM file (say you named the file with the wrong file extension), the compiler error is "Invalid CFML construct found on line 1 at column 1. ColdFusion was looking at the following text: < The CFML compiler was processing: < marks the beginning of a ColdFusion tag.Did you mean LT or LTE?"
It's not the < that's the problem, it's that <cfcomponent> is illegal in a CFM file. So that's what the error message should be.
Steps to Reproduce:
Define a CFC in a file with a .cfm extension, compile it.
An accurate error message
Well it only happens if there is user error anyhow, so the work around is to not write bad code! Still: CF should report errors correctly.
My Hardware and Environment details:
|Platform(s)||Win XP All|
|Found In Build||9.0.1|
|Fixed In Build|