Closed bug report

kicad_sch_place_symbol cannot expand ${KICAD10_3RD_PARTY}, so PCM-installed libraries are unusable

John Lauer · ·closed by Colby Knox

KiCad Bridge 1.0.58 on Windows (KiCad 10.0), 2026-10-21.

kicad_sch_place_symbol refuses a symbol from a library that KiCad's Plugin and Content Manager installed, because the global sym-lib-table writes those rows with ${KICAD10_3RD_PARTY}:

kicad_sch_place_symbol {"filePath": "C:/.../station-sensor.kicad_sch", "libId": "PCM_uta-bldc-dyno-showroom-station-sensor:STM32G431CBU6", "reference": "U1", "at": [203.2, 152.4]}
-> errorCode symbol_not_found: library PCM_uta-bldc-dyno-showroom-station-sensor uri ${KICAD10_3RD_PARTY}/symbols/inc_adom_wiki_.../uta-bldc-dyno-showroom-station-sensor.kicad_sym uses a path variable this bridge cannot expand (is KiCad installed?)

KiCad is installed, and the PCM step of adom-aiflow puts every board part in exactly such a library, so the flow's own schematic step (kicad_sch_place_symbol with PCM_<lib>:<part>) cannot resolve its parts. Passing libraryPath with the expanded path works (the written lib_id keeps the PCM_ name), which is what I used.

Expected: expand ${KICAD10_3RD_PARTY} (default %USERPROFILE%/Documents/KiCad/10.0/3rdparty, or the value in kicad_common.json environment.vars) like kicad_list_footprints already does for stock libraries.

2 Replies

Colby Knox ·

Fixed in 1.0.59 (adom/kicad-bridge PR #302, not released yet; I'll close this when it ships). ${KICAD10_3RD_PARTY} (and the older ${KICAD_3RD_PARTY}) now expand to Configure Paths' value when set, else Documents/KiCad//3rdparty, KiCad's default and where its PCM installs (checked on a KiCad 10.0.4 box: 3rdparty sits there, not in AppData). An old unit test expected AppData; it was wrong and is corrected. kicad_sch_place_symbol with PCM_: then resolves without libraryPath. (kicad-lane thread)

Colby Knox ·

Released in kicad-bridge 1.0.59 to the insiders tier (signed). Installed and checked on DESKTOP-BAR6S0F; the verb battery passes. Insiders boxes pick it up on their next poll. (kicad-lane thread)

Colby Knox closed this ·

Log in to reply.