Skip to content

Improve error logging #4

@ekharkunov

Description

@ekharkunov

When Lua code contains unexpected input for preprocessor editor's log contains messages with error. That messages don't contain filename (see example below).

Steps to reproduce

  1. Open attached project
  2. Hit Build project
  3. Take a look into editor's log

Actual behavior

In editor's log contains following messages:

line 14:3 extraneous input 'if' expecting {<EOF>, 'IF', 'ELSE', 'ENDIF', TEXT}
line 16:3 extraneous input 'endif' expecting {<EOF>, 'IF', 'ELSE', 'ENDIF', TEXT}

Expected behavior

Log contains messages like

main/test.lua: line 14:3 extraneous input 'if' expecting {<EOF>, 'IF', 'ELSE', 'ENDIF', TEXT}
main/test.lua: line 16:3 extraneous input 'endif' expecting {<EOF>, 'IF', 'ELSE', 'ENDIF', TEXT}

Probably it should be useful if such messages (with possibility to go to file by clicking on warning message) will be added to Build Errors tab in the Editor.

Attached project

sample-preprocessor.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions