IDE displays file names instead of images after renaming with unicode characters

Asked by Peter Kim

Hi.

While in IDE, I clicked an image in a line and changed the file name to be in Korean rather than English and saved the change.
Then next time I open the Sikuli script in IDE, the line I changed and all the following lines showed file names of the images rather than the images.
The lines above the changed line still shows images.

How can I get back the images?

How can I name screenshots to be in Korean without loosing images in IDE?

Thanks.

Question information

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

The fact, that the thumbnails are not shown any more, means, that the IDE cannot find the image file (or at least thinks it cannot find them ;-). Strange is the behavior on the following lines, that seems to contain image file names, that were not changed yet.

I will look at it later, looks to be some kind of bug.

Revision history for this message
Peter Kim (pd-kim) said :
#2

I replaced the lines with the images whose file names were in Korean characters with the images with English file names.
I then saved the file.

When I restarted the IDE, the images all came back.

Thank God.

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

Uuups, you misspelled the being you have to thank:

Thank vgod ;-)

(https://launchpad.net/~vgod) one of the developers :-)

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

This is definitely a bug.

Sikuli has different problems with path's or filenames containing non-roman characters. So I think this is one more.

Testing it on mac, the renamed image was even deleted on saving the image, because it seemed to Sikuli IDE, that the image was not used in the script anymore.

Not saving the script (which is possible, since the flag 'script has been changed' stays false, if only an image name is changed). But on restart, the image still has the old name.

When renaming an image, the image file is copied with the new name. So the old image is kept as long as you do not save the script.
On disk, the new name is correct, with the unicode characters.

I will test this now on Windows and report a bug.

Meanwhile I recommend, to stay with the filenames containing only roman characters.

Can you help with this problem?

Provide an answer of your own, or ask Peter Kim for more information if necessary.

To post a message you must log in.