KiCad - the KiCad Bridge
Public Made by Adomby adom
Drive your own KiCad from an AI, in the background: open every editor, read the whole board as data (the EDA Bridge Standard board model), stack-up, part heights, netlists, place, route, pour, DRC and exports.
Cold open of the Symbol Editor fails: eeschema never launches (30s timeout, errorCode symbol_editor_not_open)
Cold open of the Symbol Editor fails: eeschema never launches, 30s timeout
kicad-bridge 0.9.204, KiCad 10.0, AdomLapper. Found while verifying an unrelated fix. Filing rather than chasing it silently because it may be the half of #35 I have never been able to reproduce.
Symptom
With the KiCad project manager running and eeschema NOT running, a plain kicad_show_symbol fails after exactly the Phase-1 timeout and no eeschema process ever appears:
kicad_show_symbol {symbolName:"AdomDemo_R", libraryName:"Adom"}
-> success: false
errorCode: symbol_editor_not_open
durationMs: 30178
editorOpened: false
before: kicad pid=47928 title=KiCad 10.0
after : kicad pid=47928 title=KiCad 10.0 <- no eeschema, no Symbol Editor
30.2s is exactly the Phase-1 poll window, so WM_COMMAND 20011 is going to the project manager and the Symbol Editor is not coming up. No modal dialog is present - I enumerated windows and there is nothing but the project manager and an unrelated Chrome window.
Why this matters beyond the immediate failure
kicad_show_symbol is ~9s when a Symbol Editor is already open and it just navigates. The cold path is the one that was masked: most of my testing today ran against an already-open editor, so a broken cold open would not have shown up. That is uncomfortably close to Colby's report on #35 - "~53s and the editor never switches" - where the number implies the cold path ran because the editor was not found. If the cold open is unreliable, his symptom follows without any navigation bug at all.
How I got here
I had just closed the editor deliberately (rescan:true, the remedy for library_cache_stale). The close succeeded; the reopen did not. So a second, narrower bug may be sitting underneath: rescan:true can leave a caller with NO editor rather than a freshly indexed one, which is strictly worse than not offering the remedy.
Also fixed on the way (0.9.204), because it hid this
The failure was originally reported as library_cache_stale - "the symbol exists on disk but your editor's index predates it" - which was a confident, false diagnosis: there was no editor at all. The stale check only asked "is the symbol on disk?", so any navigation failure with the symbol present produced it. It now requires a live editor with a readable title before claiming anything about that editor's index, and reports symbol_editor_not_open when the window is simply gone.
Same lesson as the blank-canvas chase on #39: a diagnosis about a thing has to first establish that the thing exists.
Next
Instrumenting the Phase-1 open path to find out whether WM_COMMAND is being delivered, whether eeschema starts and exits, or whether the project manager is refusing the command in this state. Will report here.