abey79 / vsvg

Fast and portable tools for plotter users
http://whisk.rs
MIT License
107 stars 12 forks source link

Persistent state between builds #147

Open ErikLambrechts opened 3 weeks ago

ErikLambrechts commented 3 weeks ago

First thanks to all the developers, I fiend it really enjoyable working with whiskers.

Question: is there a way to reset the state/cache of the application.

Most of the time it is super useful to have a persistent state between builds. But I encountered a situation where it led to problems.

I had a working sketch where I had a container and an offset index indicating a fraction of this container. I enlarged the container and updated the index. This index was in the bounds of the new container but not in the bounds of the old one. The code panicked since it tried to access the cached container with the updated index.

I could resolve this by first build with the bigger container and then build it again with the updated index.

Thanks