Request improvement for error message

Description

This bug was discovered during this thread to find a solution to unrecognized dependent injection error in ColdBox: https://community.ortussolutions.com/t/missing-dependency-error-with-wirebox-injection/9192/29

Essentially, there was a line in a dependency component that was being injected that looked like the following:

else if()

This really triggered a invalid syntax bytecode error, but due to the error being in an injected dependency, the reported error that popped up on the screen was a “requested missing dependency” error, while the dependency actually wasn’t missing in the first place – it was just trying to inject a component with an invalild syntax bytecode error.

I believe we should make a more descriptive error message for this situation.

Environment

Windows 10 and ColdBox 6.5.

Activity

Show:

Pothys - MitrahSoft 18 April 2022 at 14:45

okay , I've closed this ticket. Also, Now I've updated the above details to the LDEV-3060 description

Jeff Stevens 18 April 2022 at 14:34
Edited

Thanks for the reply, and sure thing! Just wanted to be sure that this was made known slightly smiling face

Pothys - MitrahSoft 18 April 2022 at 14:32

we already have a ticket ( https://luceeserver.atlassian.net/browse/LDEV-3060) to improve the error for a syntax error in the component file. The ticket is also about to undetailed error message ( seems Brad mentioned the same error here https://community.ortussolutions.com/t/missing-dependency-error-with-wirebox-injection/9192/29 ) makes difficulties in tracing the issues on wirebox. So shall I close this ticket as a duplicate?

Duplicate

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 15 April 2022 at 17:09
Updated 20 May 2022 at 10:00
Resolved 18 April 2022 at 14:45

Flag notifications