ERC exclusions are lost when schematic is closed/reopened twice
Description
Current behavior: ERC exclusions return to being errors/warnings when the schematic is closed & then re-opened twice.
Expected behavior: If an error/warning is marked as an exclusion, it should remain as such unless the user removes the exclusion.
Note: this seems to be only an ERC problem. I have not seen it with DRCs.
Steps to reproduce
- Open a schematic
- Run ERC
- Right click on an error/warning and select 'Exclude this violation'
- Click 'Close' on the ERC window
- Save the schematic & close it
- Re-open the schematic
- Run ERC
- You should see the exclusion is still there
- Close the schematic (no need to save since it's unmodified)
- Re-open the schematic
- Run ERC
- The exclusion should have returned to its previous status of error or warning (i.e. the exclusion was lost)
KiCad Version
Application: KiCad Schematic Editor x64 on x64
Version: 7.0.6, release build
Libraries: wxWidgets 3.2.2 FreeType 2.12.1 HarfBuzz 6.0.0 FontConfig 2.14.1 libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info: Date: Jul 6 2023 04:56:45 wxWidgets: 3.2.2 (wchar_t,wx containers) Boost: 1.81.0 OCC: 7.6.3 Curl: 7.88.1-DEV ngspice: 40 Compiler: Visual C++ 1936 without C++ ABI
Build settings: KICAD_SPICE=ON