pcbnew: Having a corrupt footprint file disables entire library entry / directory
Description
This came to light with the bug leaving corrupted files. Pcbnew will show an error reading a broken footprint file which is good. But as result the entire library is 'disabled' (shown empty). I'm guessing some try-catch block should be a bit finer grained to only stop the library loading for the one file, not the entire library directory.
Steps to reproduce
- Have a corrupt footprint (truncate, typo, etc)
- Start KiCad
- Open pcbnew
KiCad Version
Application: KiCad
Version: (6.99.0-4236-gbe8bbcaac3), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.3.1
FontConfig 2.14.1
libcurl/7.86.0 OpenSSL/3.0.7 zlib/1.2.13 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.50.0
Platform: Linux 5.18.1-arch1-1 x86_64, 64 bit, Little endian, wxGTK, KDE, wayland
Build Info:
Date: Nov 7 2022 20:26:31
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.80.0
OCC: 7.6.3
Curl: 7.86.0
ngspice: 37
Compiler: GCC 12.2.0 with C++ ABI 1017
Build settings:
KICAD_USE_EGL=ON
KICAD_SPICE=ON