Skip to content

Commit b1b4fd0

Browse files
codedproclaude
andcommitted
ci: compile with /portable so includes resolve from the install dir
Root cause of the 101 errors: MetaEditor resolved <Trade/Trade.mqh> from its roaming data directory (empty), not the Program Files install dir where the standard library lives, so every include failed and cascaded into undeclared CTrade/CPositionInfo/CAccountInfo errors. Compiling with /portable points MetaEditor at the install-dir MQL5 tree. (The earlier emoji were never the cause - same 101 errors before and after the ASCII change.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d413669 commit b1b4fd0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/compile-ea.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ jobs:
8181
Copy-Item "bulk-add-signals.mq5" $src -Force
8282
if (Test-Path $ex5) { Remove-Item $ex5 -Force }
8383
84+
# /portable makes MetaEditor resolve includes from the install-dir MQL5
85+
# tree (where Trade.mqh is) instead of the empty roaming data directory.
8486
Start-Process -FilePath "$mt5\MetaEditor64.exe" `
85-
-ArgumentList "/compile:`"$src`"", "/log:`"$log`"" -Wait
87+
-ArgumentList "/portable", "/compile:`"$src`"", "/log:`"$log`"" -Wait
8688
8789
if (-not (Test-Path $log)) { throw "No compile log was produced" }
8890
# MetaEditor writes the log as UTF-16.

0 commit comments

Comments
 (0)