Gamestudio Links
Zorro Links
Newest Posts
Synthetic test data in Zorro
by clint000. 06/30/26 21:19
Ranger by Robert Pardo - now for Zorro
by TipmyPip. 06/29/26 13:47
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
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (TipmyPip, Quad, VoroneTZ, madpower2000, NorbertSz), 2,904 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
4 hours ago
4 hours ago
Joined: Apr 2016
Posts: 39
madpower2000 Online OP
Newbie
madpower2000  Online 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
2 hours ago
2 hours ago
Joined: Sep 2017
Posts: 315
TipmyPip Online
Senior Member
TipmyPip  Online
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; 1 hour ago.

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