[1.1.0] IDE: Jython: Windows: exception traceback not complete --- fixed 2015-06-15+
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
Hi RaiMan.
Here is my code: http://
_______
# coding=utf-8
import sys
from os.path import dirname
from os import putenv
from sikuli.Sikuli import getBundlePath
TEST_DIR = dirname(
ROOT_DIR = dirname(TEST_DIR)
putenv('TEST_DIR', TEST_DIR)
putenv('ROOT_DIR', ROOT_DIR)
sys.path.
sys.path.
from Core import API, Common, Config
from TestCases.DW import DW
from TestCases.Objects import Building, Dragon, Interface
from sikuli.Sikuli import sleep
######## Local info ########
dw = DW("Breeding Cave test")
dw.bookmark = '#bookmark=
dw.set_
dw.admin.
dw.start()
_______
I specially made an error in class DW in method start(). After starting script I get trace:
[error] script [ D:\autotest\
[error] ZeroDivisionError ( integer division or modulo by zero )
Exception in thread "MainThread" java.lang.
at java.util.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
at org.sikuli.
This trace shows that error caused in line 27 of my script. But this error is not in this line, it's in imported module. But trace do not show this and this is not comfortable.
In earlier versions of SIkuli trace was full and showed complete path to the error.
Also I have code:
def log_uncaught_
error("\n" + "\n".join(
sys.excepthook = log_uncaught_
which was getting trace and log it in my filelog.txt. Now it does not work, because you changed something in trace output. Can I turn it off somehow and get complete trace to the error, because this is very uncomfortable for debugging? (Remain classic jython trace)
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 2.0.0 |
summary: |
- [1.1.0] IDE: Jython: exception trace not complete/accessible + [1.1.0] IDE: Jython: Windows: exception traceback not complete |
Changed in sikuli: | |
status: | In Progress → Fix Committed |
importance: | High → Critical |
milestone: | 2.0.0 → 1.1.0 |
summary: |
- [1.1.0] IDE: Jython: Windows: exception traceback not complete + [1.1.0] IDE: Jython: Windows: exception traceback not complete --- fixed + 2015-06-15+ |
Hi RaiMan, you repaired the problem of tracing the display? You want to make the switch, how do I use it?