Gamestudio Links
Zorro Links
Newest Posts
Parameter filename BUG
by walt_Schwarz. 07/02/26 15:36
Synthetic test data in Zorro
by jcl. 07/02/26 13:48
Tradestation Multi-sessions??
by walt_Schwarz. 06/27/26 12:32
Z9 getting Error 058
by jcl. 06/26/26 14:07
ZorroGPT
by TipmyPip. 06/24/26 18:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (walt_Schwarz, 1 invisible), 4,047 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
KD1990, Ephraim, Student_64151, Koti, curry
19221 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Machine-readable compiler errors for AI coding agents #489505
Yesterday at 09:59
Yesterday at 09:59
Joined: Apr 2016
Posts: 39
madpower2000 Offline OP
Newbie
madpower2000  Offline OP
Newbie

Joined: Apr 2016
Posts: 39

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
Yesterday at 12:00
Yesterday at 12:00
Joined: Sep 2017
Posts: 315
TipmyPip Offline
Senior Member
TipmyPip  Offline
Senior Member

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

Last edited by TipmyPip; Yesterday at 12:17.
Re: Machine-readable compiler errors for AI coding agents [Re: madpower2000] #489509
2 hours ago
2 hours ago
Joined: Jul 2000
Posts: 28,116
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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


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