Subject: MetaEditor 5.0.0.6274 — Exit Code 1 After Successful Single-File Compilation

Hello,

I would like to clarify the official command-line exit-code semantics of MetaEditor 5.0.0.6274 on Windows 11.

I compiled one isolated MQL5 script using metaeditor64.exe /compile with logging enabled.

Observed results:

  • Compiler diagnostics: 0 errors, 0 warnings.

  • Code generation: 100% completed.

  • EX5 file: successfully created and verified.

  • Source file: unchanged.

  • Process exit code: 1.

A subsequent read-only check confirmed the compiler log and EX5 file integrity.

I found an MQL5.com article reporting that, on MetaEditor build 6230, the exit code represents the number of successfully compiled files, so compiling one file successfully returns 1.

Could MetaQuotes please clarify:

  1. Is exit code 1 the expected successful result when compiling one file with MetaEditor build 6274?

  2. Is the exit code officially defined as the number of successfully compiled files?

  3. What is the recommended reliable success criterion for automated MetaEditor compilation: compiler diagnostics, generated EX5, process exit code, or a combination?

No trading operations or runtime execution were performed.

Thank you for your clarification.