the modify can not save

Asked by sangzh

I modify the sikuli script in the sikuli editor, and save,when i reopen the script in the sikuli editor, the modify can be seen, but when i open the modified sikuli script in other editor not sikuli, it displayed that the modify did not be saved. could you tell me why? thank you.

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
Best RaiMan (raimund-hocke) said :
#1

a Sikuli script e.g. myscript.sikuli is a folder, that contains the image files you captured and the script code in a file called myscript.py. If you open this with an external editor, it should show the code in the shape you have saved it the last time in the Sikuli IDE (does not matter, if the IDE is still open or not).

There is a bug, that might be irritating: if you modify a script and then save it with save as with a different name (e.g. script1.sikuli), then this folder still contains the last version as myscript.py and the new version as script1.py, but the changes you made are not saved to myscript.sikuli. If you want to have that, you have to use save as once more.

So if you plan to work with an external editor in addition to the IDE, you have to be very careful with your naming concept and versioning/renaming, to always have this 1:1 with .sikuli and .py inside.

Revision history for this message
sangzh (sangzhenhua) said :
#2

Thanks RaiMan, that solved my question.