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.
open_footprint_editor cannot load a footprint from a library installed while KiCad is running ([no footprint loaded])
What happened
kicad_open_footprint_editor {libraryName, footprintName} opens the Footprint Editor but the footprint never loads when the library was registered (with kicad_install_library) while KiCad was already running. The verb answers:
success: false
error: "Footprint Editor open but 'TST_QFN24' didn't load in the background after two attempts (title: [no footprint loaded] — Footprint Editor)"
Reproduced twice in a row, including after kicad_close_footprint_editor and a fresh open.
Setup
- ConfRoomROG, Windows 11 build 26200, KiCad 10.0.5 (per-user install,
%LOCALAPPDATA%/Programs/KiCad/10.0), kicad-bridge 1.0.35, all calls background (windowEtiquette: background). - KiCad was already running from earlier work (project manager + editors had been open that session).
Steps
kicad_install_library {libraryPath: ".../Adom_Check.pretty", libraryType: "footprint", libraryName: "Adom_Check"}-> success, "now in fp-lib-table", files copied toDocuments/KiCad/10.0/footprints/Adom_Check.pretty.kicad_lint_libraryon that path -> ok, 1 footprint, 34 pads, 0 warnings.kicad-cli fp upgradeandkicad-cli fp export svgboth read the same file fine, so the footprint itself is valid.kicad_open_footprint_editor {libraryName: "Adom_Check", footprintName: "TST_QFN24"}-> the error above.
Likely cause
A running KiCad holds its fp-lib-table in memory; a table edited on disk is not seen until KiCad re-reads it (restart, or Preferences > Manage Footprint Libraries > OK). The install verb reports success because the file is right, and the open verb then asks a KiCad that has never heard of the library.
Asks
kicad_install_libraryshould say so when KiCad is running:kicadRunning: true,tableReloadNeeded: true, and a_hintthat the new library is invisible to the running instance until it reloads. Better: make the running instance reload the table (if there is an IPC/API route) so the install is usable immediately.kicad_open_footprint_editorshould tell the two failures apart: "library not known to this KiCad instance (registered after launch)" versus "footprint not in the library", instead of the generic "didn't load after two attempts".- An uninstall verb is coming as a PR (
kicad_uninstall_library): there is currently no way to remove a library the bridge registered, so test libraries pile up in the user's tables.
Found while verifying adom-footprint 1.0.25 (heatsink vias) in real KiCad; worked around with kicad-cli, no foregrounding.