Sikuli deleting images automatically?

Asked by Jason

Is it normal for Sikuli to delete some images automatically?
I sometimes replace the images in the .sikuli folder with some other images(which is not captured by Sikuli)... I'm not sure if this is causing it.
Next time I open the folder, half of the images I captured disappear. This happens inconsistently that I don't know what triggers Sikuli to delete those images. In which cases do Sikuli delete images without any asking?
Please help!!!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

0.10.2 or Sikuli X?

It is a feature: On saving a script, Sikuli IDE deletes all images, that are not referenced in the script.

If the image is referenced in the script AND deleted on save, it is a bug (with 0.10.2 it known to happen in some cases).

Revision history for this message
Jason (jasonyoo) said :
#2

I'm using Sikuli X. Is there a way to stop it from deleting anything?

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

no, not a feature.

Place your additional images (those not created with the IDE) in a separate folder, that you include using addImagePath().

Feel free to post a request bug, to get an option like "save without deleting anything".

Revision history for this message
Jason (jasonyoo) said :
#4

Thanks RaiMan, that solved my question.