tracker issue : CF-4205371

select a category, or use search below
(searches all categories and all time range)
Title:

Some compiler errors don't report actual file and line of invalid syntax

| View in Tracker

Status/Resolution/Reason: To Fix//Investigate

Reporter/Name(from Bugbase): Bradley W. / ()

Created: 10/05/2019

Components: Language

Versions: 2018

Failure Type: Data Loss

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal / Unknown

Locale/System: / Platforms All

Vote Count: 0

Problem Description:

Some compiler errors don't report actual file and line of invalid syntax which makes debugging very hard.

Steps to Reproduce:

index.cfm

{code}
<cfset getComponentMetadata( 'my' )>
{code}

my.cfc

{code:java}
component {

    function foo( data ) {
        var data = '';
    }

}
{code:java}

Actual Result:

The error message points to line 1 of the index.cfm file and not to line 4 of the my.cfc where the actual error happened.

Expected Result:

to line 4 of the my.cfc where the actual error happened.

Any Workarounds:

No.

Attachments:

Comments: