Skip to content

LIB-29 Placed symbol carrying a ki_ field

Severity Status Implementation
warning runs in better_erc easy

Data it needs: graph.

Looks at. The schematic's placed symbols.

What it catches. A placed symbol with a field whose name starts with ki_ (ki_fp_filters, ki_keywords, ki_description, ki_locked). Fields inside the library symbol (lib_symbols) never count.

Why it matters. These are properties of the library symbol. On a placed symbol they are ordinary fields, so KiCad's DRC schematic parity reports "Missing symbol field ki_fp_filters in footprint" (footprint_symbol_field_mismatch). Update PCB from Schematic never clears it, because KiCad treats a footprint field of that name as its own internal property.

Example. (property "ki_keywords" ...) and (property "ki_fp_filters" ...) as direct children of a placed (symbol (lib_id ...)).

How to check. The placed symbol's field names. An empty field is not seen: the importer drops empty fields.

Fix. Delete the field in Symbol Properties on the placed symbol, then Update PCB from Schematic.

References. None.

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only LIB-29 reports on it.

lib-29_placed_ki_fields

The test schematic lib-29_placed_ki_fields The test schematic lib-29_placed_ki_fields

  warning    LIB-29 #vfe    U2 carries the fields ki_fp_filters, ki_keywords: a `ki_` field belongs only in the library symbol, and on a placed symbol KiCad's schematic parity reports it as missing in the footprint (footprint_symbol_field_mismatch), which Update PCB from Schematic never clears
                            part U2
                            fix: delete the field in Symbol Properties on the placed symbol (the library symbol keeps it), then Update PCB from Schematic
  warning    LIB-29 #05g    U3 carries the field ki_description: a `ki_` field belongs only in the library symbol, and on a placed symbol KiCad's schematic parity reports it as missing in the footprint (footprint_symbol_field_mismatch), which Update PCB from Schematic never clears
                            part U3
                            fix: delete the field in Symbol Properties on the placed symbol (the library symbol keeps it), then Update PCB from Schematic