Remapping voes - EESCHEMA symbol remappng is still struggling to convert older projects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Expired
|
Undecided
|
Unassigned |
Bug Description
Today I tried to open one of the older projects (about 8 months old) It went through the dreaded remapping procedure and sure enough it didn't finish it gracefully. Trying to back trace the root of the problem brought me to the following findings.
1. The original project I was trying to open had symbol libraries "missing". Not sure what caused that but the last time I opened it, all the symbols were pulled from the proper libraries. If I open the same project with an older KiCad version I can go to the Library paths and assign proper paths to the symbol libraries, then restart the KiCad and after opening the schematics again everything opens just fine. I don't think it is really important to the problem at hand to concentrate on "why" the libraries were missing, although, like I said, last time I opened that project everything was assigned properly. What is important that the fix is simple - reassign all the paths to the proper libraries, restart and voala! (pardon my French)
2. When I try to open the same project with the new KiCad it naturally complains about libraries missing, re-maps all the symbols, then gives me a list of the symbols which were rescued (all of them) and then opens the schematic - so far everything acts as the previous case with the old KiCad. However if I go to the "Manage symbol libraries" all the proper libraries used in the project are already listed here! I can't fix the schematic by simply entering the right path to the proper libraries and then restarting KiCad! To add insult to injury, if I go and try at this point to open automatically generated "backed up" project from the back up folder, it greats me with a bunch of error messages and an empty schematics. So if you project haven't been backed up independently, you are screwed!
There is also an issue of symbols that have special characters in the name, which are no longer allowed (like "/" etc). In those cases EESchema doesn't even attempt to pull them from the rescue library, so they show as square boxes with a question mark and a partial name (or no name at all if the name started with the special symbol). So you get to exercise your brain cells and see if you can remember what was that symbol even called in the first place.
So, if you anticipate this issue you can open an older project with an older version of KiCad, make sure all the paths to the libraries are correct, then ...no you actually don't even need to save to project, just close KiCad, and open it with the new KiCad and everything gets re-mapped properly. If you open it up right away with the new version - you are stuck to re-assign all the libraries manually.
There might be an easier way to re-link all the proper symbols to the proper libraries other than doing by hand, but I haven't found it. The bottom line is, if I'm able to restore libraries manually, the remapping process should be able to do the same, since it pulls the right libraries references at the end of the process.
Application: kicad
Version: (6.0.0-
Libraries:
wxWidgets 3.0.3
libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,
Boost: 1.60.0
OpenCASCADE Community Edition: 6.8.0
Curl: 7.54.1
Compiler: GCC 7.1.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
@Art, if you deleted or moved your old (v4) symbol libraries when you upgraded, this would cause the remapping to fail as you described. You have to maintain all of your old libraries in the correct paths in order for the remapping to be successful. Your safest bet is to create a project library from the cache file and make it the first symbol library in the library list of your project file. As long as the cache was not corrupted, AFAIK this will ensure 100% accurate remapping. The user documentation for this can be found at http:// docs.kicad- pcb.org/ stable/ en/kicad. html#_upgrading _from_version_ 4_to_version_ 5