[check] exception when save the file caused by inconstant indents

Bug #1252196 reported by xiaoyan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

OS: Win 7 64Bit
Sikuli version: 1.0.0

The follow program:

#begin
if exists("lock.png") :
        click("onkey.png")
        wait(5)
        test.unlock()

 else:
    test.unlock()
#end

when save this file, it will pop up many log info in log panel.
By above issue cause by the python program grammar.

Revision history for this message
RaiMan (raimund-hocke) wrote :

System and Sikuli version ???

cannot reproduce any problem using Sikuli version 1.0.1

So pls be more specific about the error.

You might start the IDE with option -c from command line so all output goes to command line.

Changed in sikuli:
status: New → Opinion
Revision history for this message
RaiMan (raimund-hocke) wrote :

BTW: the indentation is not consistent.

xiaoyan (xiexiaoyan-119)
description: updated
Revision history for this message
xiaoyan (xiexiaoyan-119) wrote :

Thanks for RaiMan.

Yes, it is because of the indentation.

But it is should not print many exception, it should give some error info.
The error info will print in the console (if you run the IDE by -c option) or the message panel.
It is better to prompt the user to modify the indentation in the error line.

Revision history for this message
RaiMan (raimund-hocke) wrote :

is on the list.

Changed in sikuli:
status: Opinion → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
summary: - it will pop up a exception when save the file
+ [1.0.1] exception when save the file caused by inconstant indents
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 2.0.0 → 2.1.0
importance: High → Medium
summary: - [1.0.1] exception when save the file caused by inconstant indents
+ [check] exception when save the file caused by inconstant indents
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.