sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03566
[Bug 801497] [NEW] X-1.0rc3: Java exception at end of script running sikuli-script.jar from commandline with user parameters
Public bug reported:
I'm using Sikuli in command line and I pass parameters to Sikuli. Here
it goes :
> java -jar "sikuli-script.jar" "test.sikuli" "param1"
Everything works great except at the end, an exception is thrown :
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at org.sikuli.script.ScriptRunner.getPyFrom(ScriptRunner.java:97)
at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:91)
at org.sikuli.script.SikuliScript.main(SikuliScript.java:102)
You can avoid this exception, when using exit() at the end of the
script, but the you get this needless SystemExit exception (bug
reported) :-((
** Affects: sikuli
Importance: Undecided
Status: New
** Description changed:
I'm using Sikuli in command line and I pass parameters to Sikuli. Here
it goes :
> java -jar "sikuli-script.jar" "test.sikuli" "param1"
Everything works great except at the end, an exception is thrown :
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
- at java.lang.String.substring(String.java:1937)
- at org.sikuli.script.ScriptRunner.getPyFrom(ScriptRunner.java:97)
- at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:91)
- at org.sikuli.script.SikuliScript.main(SikuliScript.java:102)
+ at java.lang.String.substring(String.java:1937)
+ at org.sikuli.script.ScriptRunner.getPyFrom(ScriptRunner.java:97)
+ at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:91)
+ at org.sikuli.script.SikuliScript.main(SikuliScript.java:102)
+
+ You can avoid this exception, when using exit() at the end of the
+ script, but the you get this needless SystemExit exception (bug
+ reported) :-((
** Summary changed:
- X-1.0rc3: Java exception running sikuli-script.jar from commandline with user parameters at end of script
+ X-1.0rc3: Java exception at end of script running sikuli-script.jar from commandline with user parameters
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/801497
Title:
X-1.0rc3: Java exception at end of script running sikuli-script.jar
from commandline with user parameters
Status in Sikuli:
New
Bug description:
I'm using Sikuli in command line and I pass parameters to Sikuli. Here
it goes :
> java -jar "sikuli-script.jar" "test.sikuli" "param1"
Everything works great except at the end, an exception is thrown :
> Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at org.sikuli.script.ScriptRunner.getPyFrom(ScriptRunner.java:97)
at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:91)
at org.sikuli.script.SikuliScript.main(SikuliScript.java:102)
You can avoid this exception, when using exit() at the end of the
script, but the you get this needless SystemExit exception (bug
reported) :-((
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/801497/+subscriptions
Follow ups
References