[1.0.1] Error Traceback Display Wrong Line when FindFailed in imported script --- fixed in 1.1.0

Bug #1230928 reported by shawn kirsch on 2013-09-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Critical
RaiMan

Bug Description

If I have a lib called testLib and I import it into another moduel say curModule and then call a function in testLib, if it fails in the function I'm calling to testLib it will say there was an error in curModule on line whatever, although it's actually failing on a separate line in the testLib. Can sikuli not inspect it deep enough? this make debugging a pain in the ass.

RaiMan (raimund-hocke) wrote :

you should get an error message like this:

[error] script [ main ] stopped with error in line 7
[error] ZeroDivisionError ( integer division or modulo by zero )
[error] --- Traceback --- error source first
line: module ( function ) statement
6: sub ( test ) 1/0
[error] --- Traceback --- end --------------

... this might be a little bit mangled, but tells you, that the

[error] ZeroDivisionError ( integer division or modulo by zero )

happened at

line: module ( function ) statement
6: sub ( test ) 1/0

means at line 6 in module sub in function test showing the line content

So, what are you missing?

shawn kirsch (shawn-kirsch) wrote :

I will post my output tomorrow, sorry for the delay.

shawn kirsch (shawn-kirsch) wrote :

What I mean to say is that if an image fail lookup occurs in another script it doesn't tell you where basically...it tells you the image it's failing on, but ideally it would say what line the fail occurs on. i mean i can ctrl + f and find it, but...

OK, thanks for clarification and example.

This is a bug. I will check and fix as soon as possible.

summary: - Error Tracebacks Display Wrong Line
+ Error Tracebacks Display Wrong Line when FindFailed in imported script
summary: - Error Tracebacks Display Wrong Line when FindFailed in imported script
+ [1.0.1] Error Traceback Display Wrong Line when FindFailed in imported
+ script
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
RaiMan (raimund-hocke) on 2015-06-24
summary: [1.0.1] Error Traceback Display Wrong Line when FindFailed in imported
- script
+ script --- fixed in 1.1.0
Changed in sikuli:
importance: High → Critical
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers