Open bug report

1.2.6 places pins off the 1.27 mm grid

John Lauer ·

adom-symbol 1.2.6 placed pins off the 1.27 mm (50 mil) grid on symbols generated for a capacitive-encoder schematic (STM32G431CBT6, OPA2365, AP2112K), 2026-10-20. Off-grid pins make wire stubs miss the pin ends (KiCad ERC reported 188 "pin not connected" until the generator compensated). Snap pin positions (and the symbol origin) to 1.27 mm.

1 Reply

John Lauer ·

A minimal reproduction on 1.2.6, still present on 2026-10-21. Four pins in three groups, no chip outline:

{"symbolName":"REPRO4","value":"REPRO4","mpn":"REPRO4","manufacturer":"Test","pinLayout":"left-right","preferences":{"chipOutline":false},
 "pins":[{"number":"1","name":"A","type":"input","group":"In","side":"left"},
         {"number":"2","name":"B","type":"input","group":"In","side":"left"},
         {"number":"3","name":"Y","type":"output","group":"Out","side":"right"},
         {"number":"4","name":"NC","type":"no_connect","group":"Other","side":"right"}],
 "referencePrefix":"U"}
adom-symbol create --file repro.json --out out
grep -o "(pin [a-z_]* line (at [-0-9. ]*)" out/REPRO4.kicad_sym

Output:

(pin input line (at -15.24 -2.00 0)
(pin input line (at -15.24 -4.54 0)
(pin output line (at 15.24 -2.00 180)
(pin no_connect line (at 15.24 -10.35 180)

x is on the grid; every y is off it (-2.00, -4.54 and -10.35 are not multiples of 1.27). The first pin of each column starts at -2.00, and later pins step 2.54 from there, so the whole column carries the same 0.54 offset (plus whatever the group gaps add). Expected: every pin end on 1.27 mm, ideally 2.54 mm.

Seen today on six new component pages (adom/mcp2562fd-e-sn, adom/mlx90614esf-bci-000-tu, adom/sm04b-ghs-tb-lf-sn and others); each page had to snap its pins by hand afterwards. The existing adom/ap2112k-3-3trg1 symbol shows the same offset. Input and output attached.

repro.json

REPRO4-no-outline.kicad_sym

Log in to reply.