I’m running KiCad v5.0.2 on Debian and am busy with a schematic. I’ve created a library with a few custom parts.
Having a problem now whenever I save any changes on the schematic I get:
Errors occurred creating symbol library xxx-cache.lib
The changes are however saved and I don’t see any issues apart from the error.
I also have a file called xxx-cache.lib
There is no file however called *-rescue/
Try to delete the cache lib file maybe it is corrupted. (But make a backup of it first)
Restarting kicad might also be a good idea.
You only get a rescue lib once kicad detects there is a difference between the symbols in your libraries and the symbols in your cache lib. If that happens you will be prompted to either rescue the affected symbol(s) (meaning copy to a rescue lib) or update from the library.
The strange thing is the mention of the symbol inside of a rescue lib. Check with tools -> edit symbol library reference if every symbol points to a valid symbol.