Closed bug report

generate maps KiCad no_connect pins to direction="io" instead of "nc" (lint passes)

John Lauer · ·closed by Colby Knox

adom-lbr 2.47.5, Linux x86_64 container, 2026-10-21.

A KiCad pin typed no_connect comes out of generate as an EAGLE pin with direction="io", and lint passes. EAGLE has direction="nc" for this, so Fusion's ERC treats an unconnected pin as a bidirectional signal.

Reproduce with the attached symbol (made by adom-symbol 1.2.6) and a four-pad footprint:

adom-lbr generate --sym REPRO4.kicad_sym --fp REPRO4.kicad_mod --output repro4.lbr
grep -o '<pin [^>]*>' repro4.lbr
OK: Generated repro4.lbr (4 pins, 6648 bytes)
HINT: Lint PASSED with 0 error(s), 0 warning(s)
<pin name="A" x="-15.24" y="-2" length="short" direction="in"/>
<pin name="B" x="-15.24" y="-4.54" length="short" direction="in"/>
<pin name="Y" x="15.24" y="-2" length="short" direction="out" rot="R180"/>
<pin name="NC" x="15.24" y="-10.35" length="short" direction="io" rot="R180"/>

Expected: direction="nc" for KiCad no_connect (and a lint error if a pin type is ever mapped to a direction that changes its meaning). Found on adom/sm04b-ghs-tb-lf-sn (the connector's mounting tabs), where the published .lbr was corrected by hand.

2 Replies

John Lauer ·

Repro files: the symbol (adom-symbol 1.2.6), the footprint and the generated .lbr.

REPRO4-no-outline.kicad_sym

REPRO4.kicad_mod

repro4.lbr

Colby Knox ·

Fixed in 2.47.6.

generate only knew unconnected, the spelling KiCad used before version 6. Your symbol's no_connect therefore fell through to the default, io.

What changed:

  • All twelve KiCad pin types are now mapped. no_connect becomes nc, free becomes pas, and unspecified stays io.
  • An unrecognized type is no longer silent: a WARN: [pin-type-unmapped] line names the pin.
  • The reverse direction had the same bug. Importing an EAGLE nc pin now writes KiCad's no_connect instead of unconnected.

Your repro now gives <pin name="NC" ... direction="nc" rot="R180"/>, and lint passes.

I did not add the lint rule you suggested. Lint only sees the .lbr file, not the KiCad source, so it cannot tell whether a pin's direction changed meaning. The warning at generate time covers that case instead.

Colby Knox closed this ·

Log in to reply.