Better error location for external editors

If there is something important you think is missing in the current version of ZGameEditor then you can post a feature request here!

Moderator: Moderators

Post Reply
User avatar
Ats
Posts: 933
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Better error location for external editors

Post by Ats »

Here’s a classic error message that we can get:
Error in expression for node: Zlibrary
")" expected ")" (line: 86, col: 24)
That’s enough when editing from the ZGE IDE, since it opens the node directly. But I was wondering if it would be possible to also add the real XML position for external editors.
In my case, that would be: line 5122, col 24.

Something like:
")" expected ")"
ZGE line: 86, col: 24
XML line: 5122, col: 24
or
")" expected ")"
ZGE position: line 86, col 24
XML position: line 5122, col 24
or
")" expected ")" (ZGE: 86:24 | XML: 5122:24)
or
")" expected ")" (line: 86 [XML: 5122], col: 24)
(Since only the line will change)


I don’t know if there’s a good or official notation for that.
User avatar
Ats
Posts: 933
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Better error location for external editors

Post by Ats »

Maybe
Error in expression for node:
ZLibrary (line: 86, col: 24)
XML (line: 5122, col: 24)
")" expected ")"
Error in expression for node:
ZExpression (line: 2, col: 19)
XML (line: 3467, col: 19)
Unknown function: MoveNebula
Error in expression for node:
MeshExpression (line: 39, col: 4)
XML (line: 12322, col: 4)
invalid StatmentExpr
User avatar
VilleK
Site Admin
Posts: 2416
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Better error location for external editors

Post by VilleK »

There is no easy way to do this. When the project is loaded in memory it is no longer in XML form and have no connections back to it.
User avatar
Ats
Posts: 933
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Better error location for external editors

Post by Ats »

Oh. All right :)
Post Reply