I’m new to KiCad. In my project folder there are two .lib files, <project name>.lib and <project name>-cache.lib, whose purpose I’m trying to understand.
If I assume that <project name>-cache.lib is just a cache for technical reasons then my question is mostly about the <project name>.lib. What I found out so far:
I cannot edit <project name>.lib from the KiCad main window (“Library not found in symbol library table”), presumable because I don’t have (and don’t need) a sym-lib-table in the project.
It seems I cannot edit symbols from this file with Ctrl+E nor Properties > Edit with Library Editor, it will instead edit the symbol in the global library.
I’m using KiCad 5.1.10.
So is this file for when I copy the project to another machine that doesn’t have the global libraries? What if it does have the global libraries but they contain conflicting information? And what about the cache file, should I manually exclude it when I copy the project to another machine?
Apparently you have made a new library in your project.
Euhm, no.
If you want to use that library in your project, you have to add the library to your project, and KiCad saves that setting in the sym-lib-table file. Result is that if you delete the sym-lib-table file from your project, then KiCad does not see the project specific libraries anymore.
Hm, interesting. Certainly not on purpose. It has all the symbols in it that I have used in my project. If KiCad has a function to create such a library, I might have triggered it inadvertently. I just played around with a fresh project and indeed the <project name>.lib file normally is not automatically created.
This is normal for the “[Project]-cache.lib” file.
Maybe you once renamed that file by removing the “-cache” part?
Maybe the file date gives a clue to (when, and thus: ) why you created that file. But it’s probably not all that important. For people new to KiCad (or any other PC program) it’s common to click on buttons and try things out just to see what happens. And it’s also common to not understand it all and forget what you did (Especially if you did not understand what the results of an action were)
I’m pretty sure I didn’t manually rename it, but if there’s a menu item for that, it’s entirely possible that I did that.
Anyway, now it’s gone. I deleted it using the KiCad GUI and apparently that really permanently deletes it, even bypassing the Recycling Bin. So I can’t check the file date anymore. Luckily it seems to have no ill effect on my schematic.