by adom
Let an AI (Claude, ChatGPT, Codex or any agent) run Altium Designer for you: create symbols and footprints, place parts (also from Altium 365), wire and annotate schematics, Update PCB, set the stack-up and rules, route, pour copper, add mounting holes and stitching vias, run ERC and DRC, and make Gerbers, BOMs and STEP. Free in Hydrogen; bring your own AI and Altium licence.
compile_intlib: IntLib is written, then Altium shows 'Could not create integrated library .' and the verb reports agent_script_error
altium-bridge 0.2.99 · Adom Bridge 2.1.x · Altium Designer 26.11.1 Professional · Windows 11 (user profile path with non-ASCII characters)
What happens. altium_compile_intlib {libpkgPath} writes the .IntLib correctly, then Altium raises an Error box "Could not create integrated library ." (note the empty name before the dot) and the verb answers agent_script_error. The bridge auto-recovers, so nothing is left blocked, but every successful compile reports as a failure.
Repro (3 out of 3 runs today):
altium_compile_intlib {"libpkgPath":"C:\\...\\Resources\\Librerias\\LDO_5V_3V3_Board.LibPkg","timeout":300}
LibPkg layout (plain, two source docs, relative paths):
Resources\Librerias\LDO_5V_3V3_Board.LibPkg
Resources\Librerias\LDO_5V_3V3_Board\LDO_5V_3V3_Board.SchLib (9 components)
Resources\Librerias\LDO_5V_3V3_Board\LDO_5V_3V3_Board.PcbLib (7 footprints, STEP bodies)
Reply (verbatim, trimmed):
{"agentAlive": true, "autoRecovered": true, "command": "compile_intlib", "durationMs": 46740,
"error": "the agent script raised a runtime error while running 'compile_intlib' (Altium showed an 'Error' box; its text is in errorShot)",
"errorCode": "agent_script_error",
"recoverSteps": [{"reason": "auto: script Error box during agent command 'compile_intlib'"}, {"scriptActivatedAndStopped": "AdomAgent_c225884e5e.pas"}, {"editScriptStop": "sent", "exited": true, "sec": 1.2}, {"reaped": false}, {"verifiedByRestartingTheAgent": true}],
"success": false}
Evidence the compile itself worked: Project Outputs for LDO_5V_3V3_Board\LDO_5V_3V3_Board.IntLib is rewritten each time (timestamps 09:37, 10:31, 10:33, 10:47 today, 751 KB), and decoding it gives all 9 components with their footprints and parameters (0 pin/pad mismatches).
Guess. The verb seems to trigger a second compile (or a compile of the focused project) after the first one finished, and that second one has no project name, hence "Could not create integrated library .". Maybe the LibPkg is opened, compiled, and then the compile process runs again against whatever is focused.
Expected. success: true with the output path, as the file is in fact written.
errorShot attached.
