Could not load script runner for ending...

Asked by Yu

Hello!

I've got both Sikuli-IDE and .jar are failing when trying to open a script, if there is another file in the folder with the same filename (minus extension):
1) in IDE create new script, save it as say "testscript"
the following are created:
testscript.sikuli\
testscript.sikuli\testscript.py
2) make a screenshot and save it in the directory, rename to "testscript.png"
we have now:
testscript.sikuli\
testscript.sikuli\testscript.py
testscript.sikuli\testscript.png
3) close script tab in IDE, close IDE
4) open IDE then open the script

Actual: the program is terminated. Running with -d returns:
(...a number of info lines here without anything suspicious...)
[debug] MenuAction.doLoad
[error] Fatal error 120: Could not load script runner for ending: png
[error] Terminating SikuliX after a fatal error(120)! Sorry, but it makes no sen
se to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
[debug] SikuliXFinal: cleanUp: 0

A workaround is to keep the script filename unique through the folder, works fine.

I'm not sure but it seems that these scripts were opened normally before. Can you please advise if there's a new restriction on naming files?

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

of course a bug ;-)

so for now avoid this kind of name clashes.

Revision history for this message
Yu (yuri-litovchenko) said :
#2

Thanks RaiMan, that solved my question.

Revision history for this message
niknah (hankin0) said :
#3

Thanks a lot!
This can happen if you're using git too, or other source control tools.

If you do something in git and you need a merge, it'll leave behind a ???.orig file, some other programs may leave behind a ???.reject file.