Lucee doesn't show Filename and linenumbers on getComponentMetadata(InvalidComponent)

Description

GetComponentMetadata does not show error details when we try to get metadata of a component which has syntax errors. It wil fail with this error
lucee.transformer.bytecode.statement.ExpressionAsStatement cannot be cast to lucee.transformer.bytecode.statement.tag.TagComponent
Problem ONLY occurs when component definition is not on one line.
So

is OK, but

will fail. This is especially annoying in large projects using wirebox, since it is using getComponentMetaData all the time. It makes it almost impossible to track syntax errors.
Tools like cfformat will often break component definitions on multiple lines.

Environment

None

Assignee

Michael Offner

Reporter

Wil de Bruin

Priority

New

Labels

Fix versions

None
Configure