I had an issue with Kiutils parsing locally edited symbols with names ending with _NUMBER as symbol with unitId and styleId, example:
have symbol called C_100n_0402 from some lib, modify symbol on the schematic. KiCad adds entry called C_100n_0402_1 to lib_symbols. This only occurs if there is multiple symbols/units from given library and one/more of them is modified on schematic
I had an issue with Kiutils parsing locally edited symbols with names ending with _NUMBER as symbol with unitId and styleId, example: have symbol called
C_100n_0402
from some lib, modify symbol on the schematic. KiCad adds entry calledC_100n_0402_1
tolib_symbols
. This only occurs if there is multiple symbols/units from given library and one/more of them is modified on schematicHere is how changes looks like in the file.
initial schematic symbol s-expression
after editing
C_100n_0402
symbol on schematic:and symbol added to
lib_symbols
by KiCadAnd parsing this entry from
lib_symbols
results in following Symbol object:as the name matched regex in
libId
setter inSymbol
class and was parsed as name containing unitId and styleIdFor multi unit symbols case looks this same, _1/_2... is added to the name of the symbol and copy of it is stored in the
lib_symbols
section.Using KiCad 7.0.11
Example project with symbol affected with this: issue_example.zip