Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 07/18/26 13:40
Z9 getting Error 058
by madpower2000. 07/17/26 19:03
Purchase A8 full licence version
by ukgamer. 07/17/26 05:52
New Lic: When does the Support clock start?
by Student_64151. 07/17/26 01:38
New Zorro version 3.11
by madpower2000. 07/16/26 13:49
What are you working on?
by NeoDumont. 07/15/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (madpower2000), 3,386 guests, and 89 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Machine-readable compiler errors for AI coding agents #489505
07/01/26 09:59
07/01/26 09:59
Joined: Apr 2016
Posts: 46
madpower2000 Online OP
Newbie
madpower2000  Online OP
Newbie

Joined: Apr 2016
Posts: 46

Hi jcl,

Could Zorro provide a machine-readable way to retrieve lite-C compiler and runtime errors when started from the command line?

For example:

```powershell
Zorro.exe -run Alice1a -quiet
```

When the script contains a compiler error, Zorro briefly displays the error in its message area and then exits. The diagnostic is apparently not written to stdout or stderr, and the process may still return exit code `0`.

A human can run Zorro with `-stay`, double-click the message area, and copy the error. However, this is difficult and fragile to automate for AI coding agents, build scripts, and CI systems.

Possible solutions:

- Write compiler errors to stderr.
- Return a nonzero process exit code on compilation failure.
- Add an option such as `-errorlog <file>`.
- Always write compiler diagnostics to a predictable text file.
- Provide an option that copies the complete message-window contents to a file before exiting.

Ideally, this command:

```powershell
Zorro.exe -run Alice1a -quiet -errorlog compile-errors.txt
```

would produce error log and terminate with a nonzero exit code.

This would make Zorro much easier to integrate with AI coding agents and automated development workflows. The agent could compile a strategy, extract the exact diagnostic, correct the source, and repeat the test without GUI automation.

Would such an interface be feasible in a future Zorro release?

Re: Machine-readable compiler errors for AI coding agents [Re: madpower2000] #489506
07/01/26 12:00
07/01/26 12:00
Joined: Sep 2017
Posts: 317
TipmyPip Online
Senior Member
TipmyPip  Online
Senior Member

Joined: Sep 2017
Posts: 317
Outstanding Suggestion. As a matter of fact, we need all error reporting in details output with CLI.

Last edited by TipmyPip; 07/01/26 12:17.
Re: Machine-readable compiler errors for AI coding agents [Re: madpower2000] #489509
07/02/26 13:25
07/02/26 13:25
Joined: Jul 2000
Posts: 28,124
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,124
Frankfurt
That makes sense. I'll put it on our list.

Re: Machine-readable compiler errors for AI coding agents [Re: jcl] #489528
07/14/26 19:46
07/14/26 19:46
Joined: Apr 2016
Posts: 46
madpower2000 Online OP
Newbie
madpower2000  Online OP
Newbie

Joined: Apr 2016
Posts: 46
Thank you very much! If possible, please let me know when this new feature is available for testing.

Re: Machine-readable compiler errors for AI coding agents [Re: madpower2000] #489531
07/15/26 10:25
07/15/26 10:25
Joined: Jul 2000
Posts: 28,124
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,124
Frankfurt
It will be in the next beta version, 3.12.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1