ERC Exclusions are placed on the root sheet rather than their correct sheet
Description
The project was saved with ERC exclusions on page 4 (Power Management/PMIC2). When the project is opened, the ERC exclusions are shown on the root sheet as shown in the image and ERC find the original excluded error again.
Steps to reproduce
- Open project with ERC violations
- Exclude one or more on a subsheet
- Archive project
- Unarchive project to a new location
- Note that the violations are now on the main sheet.
KiCad Version
Application: Eeschema
Version: (5.99.0-8605-g96af236493), release build
Libraries:
wxWidgets 3.0.5
Platform: Linux 5.8.0-3-amd64 x86_64, 64 bit, Little endian, wxGTK, xfce, x11
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.0
Curl: 7.74.0
ngspice: 33
Compiler: GCC 10.2.1 with C++ ABI 1014
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
KICAD_USE_OCC=ON
KICAD_SPICE=ON