Skip to content

fix: replace GUI dialogs with stderr in CompileEngine for CLI compatibility#4

Open
Nigh wants to merge 3 commits into
owhs:mainfrom
Nigh:fix/cli-stderr-output
Open

fix: replace GUI dialogs with stderr in CompileEngine for CLI compatibility#4
Nigh wants to merge 3 commits into
owhs:mainfrom
Nigh:fix/cli-stderr-output

Conversation

@Nigh

@Nigh Nigh commented Jun 14, 2026

Copy link
Copy Markdown

Summary

  • Replace MsgBox and ShowErrorDialog calls in CompileEngine() with WriteConsoleW-based stderr output
  • Also replace ToolTip calls (GUI-dependent) with stderr output
  • Add XAMLHost._StdErr() static helper method

Motivation

In headless CLI environments such as GitHub Actions, GUI dialogs (MsgBox, ToolTip, ShowErrorDialog) cannot be displayed, causing the compilation process to hang or fail. This change redirects all diagnostic output in CompileEngine() to stderr, allowing the build to complete and properly report errors in CI/CD pipelines.

Changes

  • lib/XAML_Host.ahk: 4 MsgBox/ShowErrorDialog + 3 ToolTip calls replaced with _StdErr()

Nigh and others added 3 commits June 14, 2026 14:36
fix: remove double quotes from #Include directives for ahk2exe compatibility
…bility

Replace MsgBox and ShowErrorDialog calls in CompileEngine() with
_WriteConsoleW-based stderr output to allow compilation to complete
in headless CLI environments such as GitHub Actions.

Also replaced ToolTip calls (GUI-dependent) with stderr output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant