Skip to content

AGS 4: New compiler: reports undeclared function with incorrect line #2902

@ivan-mogilko

Description

@ivan-mogilko

Problem

New script compiler reports a line 1-2 numbers above the actual line when there's a function call of an undeclared function. I noticed that using undeclared variables in some expression does not cause the same problem, but I am not fully certain that this is not a accident.

How to reproduce

Go anywhere in script and type e.g.

CallWrongFunction();

then compile.

The compiler will report identifier 'CallWrongFunction' is undeclared, but the reported line is 1-2 numbers less than the actual line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ags 4related to the ags4 developmentcontext: script compilertype: bugunexpected/erroneous behavior in the existing functionalitywhat: editorrelated to the game editor

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions