Some syntax errors cause Lucee errors instead of debugging info.
In several Lucee versions. Used 5.3.5 but also tried 5.3.6 and 5.2.x
In this particular case an extra) in chained syntax
var q = wirebox.getInstance("QueryBuilder@qb")
.andwhere( "Password", hash(arguments.password & SOMESECRET ) ))
lucee.runtime.exp.NativeException: lucee.transformer.bytecode.statement.ExpressionAsStatement cannot be cast to lucee.transformer.bytecode.statement.tag.TagComponent
macOS Catalina with commandbox
I've checked this ticket with latest version 184.108.40.206-SNAPSHOT too. I couldn't able to reproduce as you said. So, it throws
So, could you please check with this latest version of lucee if possible and report here back.
Please close this issue. I don’t have the exact example here anymore, because I solved it in another way.
If this shows up again somewhere else I’ll file a new issue.
OK. I close this ticket as per reporter said. , if you face this again means, please report here. We'll reopen the ticket.