Power symbols display incorrect behavior with "Symbol x has been modified in library y" ERC rule.
Description
The issues is best described by the following steps to reproduce.
Steps to reproduce
- Create a new schematic from scratch
- Add a GND power symbol
- Run ERC and notice no "Symbol x has been modified in library y" warning (ignore the "Pin not connected" error)
- Open the symbol properties (right-click->Properties...)
- Deselect "Show pin numbers" and "Show pin names" and press OK
- Run ERC again and notice still no "Symbol x has been modified in library y" warning. This is expected, I'm only changing the visibility of graphic items not modifying the symbol itself.
- Add a new GND power symbol using "Add power symbol" button
- Run ERC again and now notice the "Symbol 'GND' has been modified in library 'power'" warning pointing to the new GND power symbol!
- Update the new GND symbol from library and observer that the ERC warning does not go away.
- Deselect "Show pin numbers" and "Show pin names" in the new symbol and notice still the warning does not go away
- Delete the first power symbol, run ERC and notice still the same warning
- Finally, update the remaining GND symbol from library and observer the ERC warning now goes away.
Note that this strange behavior only seems to effect power symbols, repeating the above with a normal symbol works fine.
With larger projects this makes for very confusing behavior which as you can expect can quickly lead to feelings of insanity.
KiCad Version
Application: KiCad Schematic Editor x64 on x64
Version: (7.0.0), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.83.1-DEV Schannel zlib/1.2.13
Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Feb 12 2023 01:35:19
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.2
Curl: 7.83.1-DEV
ngspice: 39
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON
Edited by John C