Eeschema cannot find symbol after editing symbol
Description
I a previous KiCad version, the symbol name was escaped. Example from a symbol library:
(symbol "HMT004{slash}1" (in_bom yes) (on_board yes)
....
(symbol "HMT004{slash}1_0_0"
....
(symbol "HMT004{slash}1_1_0"
After editing this symbol in the symbol editor and then saving, the name isn't escaped anymore:
(symbol "HMT004/1" (in_bom yes) (on_board yes)
....
(symbol "HMT004/1_0_0"
....
(symbol "HMT004/1_1_0"
If the escaped name was added to a schematic, it's not possible to Update the symbol from library. Eeschema cannot find the new name.
It is possible to replace the symbol with "the new symbol" using the Change Symbols dialog.
Steps to reproduce
- Open the schematic: kicad-symbol-name-escaped.zip
- Try updating the symbol from the project library. It works just fine.
- Open the Symbol Editor and make some minor change to the symbol. Add a character to the Description for instance.
- Try again to update the symbol from the library. Now it cannot fint the symbol in the library.
This is reproducable in the latest Testing build for 7.0.7, and a 7.99 Nightly build from 4 days ago.
KiCad Version
Application: KiCad Schematic Editor x64 on x64
Version: 7.0.7-47-g76a3b3db97, 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: Aug 29 2023 05:13:43
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.7.1
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI
Build settings:
KICAD_SPICE=ON
Application: KiCad Schematic Editor x64 on x64
Version: 7.99.0-2396-gcbc60d90ec, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 8.0.0
FontConfig 2.14.2
libcurl/8.2.1-DEV Schannel zlib/1.2.13
Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Aug 25 2023 07:18:11
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.82.0
OCC: 7.7.1
Curl: 8.2.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI
Build settings: