Script loss, [error] EditorPane: read returned String index out of range: -1

Asked by chloe wong

hi!
I recently wrote a script and I save the file before I close sikuli, yet I cannot open the script when I restart sikuli, it showed: [error] EditorPane: read returned String index out of range: -1. I can open other downloaded script written by others except for mine.

I tried reinstalling sikuli but it still doesn't work, the only method to "use" my script again is to copy the whole script from the HTML file and replace every single image, which is time-consuming.

Thank you in advance for the help. :)

Chloe

Question information

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

what version of SikuliX?

Revision history for this message
chloe wong (cookiesiclink) said :
#2

1.1.3, tried re-installing it but still doesn't work

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

ok, might be that the save did not work, because of problems with the save path and/or the file name.

-- save path and filename should not have any blanks nor special characters (only ascii-characters, numbers, underscore and hyphen)

-- save path should be write accessible for you without admin rights

Revision history for this message
chloe wong (cookiesiclink) said :
#4

I tried changing the name of my folder and the files including the images so they are ASCII characters, but it still doesn't work.
A friend of mine did the same thing to the file and he can open it without any problem.
So I tried creating a new file and add some image with a correct image name, save and restart sikuli, this time I am able to retrieve the file and edit it.

PS. the file is accessible without admin rights

right now I am going to try downloading my friend's edited version and see if it works

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
chloe wong (cookiesiclink) said :
#6

I gave up on recovering the old file, wrote a new one with proper naming then its fine.