Load time warnings not captured by /ErrorStdOut

Discuss the future of the AutoHotkey language
TAC109
Posts: 1112
Joined: 02 Oct 2013, 19:41
Location: New Zealand

Load time warnings not captured by /ErrorStdOut

31 Dec 2023, 17:09

@lexikos
Version 2 has the additional facility to report warnings at load time as well as errors. Unfortunately these warnings are not captured by the switch /ErrorStdOut, and in this case the exit code is zero. This means that if a script generates warnings Ahk2Exe is unaware of this fact and cannot capture the warning information.

I would like the v2 interpreter be modified in this respect to process load time warnings similar to the way errors are processed so that they can be captured by Ahk2Exe. The exit code could be the same (2) or different if you believe Ahk2Exe should handle warnings in a distinct way. This would also affect the documentation for the /Validate and /ilib switches, and #ErrorStdOut.

Cheers
My scripts:-
XRef - Produces Cross Reference lists for scripts
ReClip - A Text Reformatting and Clip Management utility
ScriptGuard - Protects Compiled Scripts from Decompilation
I also maintain Ahk2Exe

Return to “AutoHotkey Development”

Who is online

Users browsing this forum: No registered users and 65 guests