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.
KiCad installed on a drive other than C: is not detected, and library paths are hard-coded to C: (from hydrogen#154)
Reported on Hydrogen: adom/hydrogen#154 (Glenn Jones, Hydrogen 1.0.666, Windows 11 Home 24H2). KiCad is installed on drive D:, and the bridge does not support it.
What I found (bridge 0.9.351 on the wiki, plus my local 0.9.261 copy):
bridge.jsondetectonly globs%ProgramFiles%\KiCad\*\bin\kicad.exeand%ProgramFiles(x86)%\KiCad\*\bin\kicad.exe, so Adom Bridge's host-app detection reports KiCad missing for a D: install.kicad_detect.pydoes read the registry (HKLM\SOFTWARE\KiCad\<ver>\InstallationPath), which should find a D: install. But the library env vars are then hard-coded toC:/Program Files/KiCad/<version>/share/kicad/...(KICADn_SYMBOL_DIR,KICADn_FOOTPRINT_DIR,KICADn_3DMODEL_DIR, around line 518 in 0.9.261). On a D: install those point at nothing, so library installs and lookups break even when detection succeeds. Please derive them from the detected install root.- Glenn also says he had to install KiCad inside the Linux workspace "for some tests" on his Fusion project. That was most likely an AI running
kicad-cli(DRC or ERC) locally instead of using the bridge or the hosted service-kicad. Worth a hint so agents do not apt-install KiCad into the workspace.
Suggested fix: detection order of registry, then the uninstall keys (HKLM and HKCU ...\Uninstall\*KiCad* InstallLocation), then every fixed drive's \Program Files\KiCad\*, then kicad.exe on PATH. Use the detected root everywhere a path is built, and add a test with a fake install under a non-C: root.
Hydrogen's own EDA discovery skill has the same C:-only scan; I am fixing that one on the Hydrogen side. Filed from the Hydrogen thread.