Closed harveydevereux closed 3 years ago
Dear @harveydevereux, the caching mechanism is just about serializing the object - so it is just for short term storage (even some update to a dependent package configuration might crash the cached file). I introduced this functionality because parsing huge map files takes lots of time and de-serializing is orders of magnitude faster. Thanks for putting this here - hopefully it should be usable for the others. Thank you for using this package!
I saw this Julialang post ERROR: KeyError: key OpenStreetMapX [5c67c38e-c187-11e8-2be6-e3a6a3a5610f] not found and I was having the same problem.
I believe the issue lies in old
.osm.cache
files (or at least that's one way to generate the same error). I no longer have any issue once I deleted these. Probably due to the package ID change mentioned in the discourse thread, since I had an old repo from years ago.Feel free to mark this as closed, just thought it would be worth having it on record.
To summarise the error/fix
and it is parseMap.jl:L96 that fails.
but it works when not using the bad cache
and of course it all works fine either way once I deleted the old cache files
Some code to reproduce (including the bad .osm.cache file) error.tar.gz