Building twice before code change takes effect?

I have an odd issue where code changes do not take effect until build again and this seems to happen randomly, not every time. I use VS Code and even had to enable audio cue when saving, so I could be sure that I actually saved the file after modifying code.

Example:
gui.animate(root, "position.x", -270, gui.EASING_LINEAR, 0.5

changed to:
gui.animate(root, "position.x", -540, gui.EASING_LINEAR, 0.5

After slapping CTRL+B (I do not build from VS Code) and activating the gui animation it still moved to -270 instead of -540 until I closed the game and build again.

  1. Does Defold cache something and I’m just building too quickly before the cache gets quietly updated?
  2. Does Defold do something periodically and this something takes longer the more files there are?

I noticed this with 1.6.4 and now 1.7.0. I don’t recall if this happened prior 1.6.4, might have.

1 Like