[IDE] IDE: on save with indent errors: A non-IOException-problem when trying to save null Error: null --- fixed 1.1.1 2016-05-01+

Bug #1473920 reported by kiyo
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

when i use IDE run my sikuli project file,I meet an error which named“[error] IDE: A non-IOException-problem when trying to save null Error: null”

my sikuli project name is Wechat and my file name is Wechat.
wechat file are following

# -*- coding: utf-8 -*-
from __future__ import with_statement
from sikuliwrapper import *
addImagePath(common.cfgImageLibrary)

class Wechat(BaseLogger):
 ROBOT_LIBRARY_SCOPE = 'TEST SUITE'

 def __init__(self):
  self.appCoordinates = (0, 0, 1024, 768)

 def startwechat(self):
  click("wechat_icon.png")
  wait(5)
  click("more.png")
  wait(5)
  click("switch_account.png")
  wait(5)
  click("login_type.png")
  wait(5)
  click("account.png")
  wait(5)
  Settings.TypeDelay = 1
  type("2919658499\n")
  wait(5)
  click("password.png")
  wait(5)
  Settings.TypeDelay=1
  type("wanshen1\n")
  wait(5)
  click("login_button.png")
    def search_public_number(self)
        click("search_button.png")
        wait(2)
  Settings.TypeDelay=1
  type("睿博研发")

 def runTest(self):
  self.startwechat()
  self.search_public_number()

if __name__ == '__main__':
 Wechat().runTest()

best regard
thanks

Revision history for this message
Zeks (enmarantispam) wrote :

I often have the same problem. This usually happens when indentation is off or tabs are used instead of spaces. Really annoying, cause it simply should not affect file save functionality in any way.

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [IDE] run my sikuli project file: “[error] IDE: A non-IOException-problem when trying to save null Error: null”

which version of SikuliX?

summary: - when i use IDE run my sikuli project file,I meet an error which
- named“[error] IDE: A non-IOException-problem when trying to save null
- Error: null”
+ [IDE] run my sikuli project file: “[error] IDE: A non-IOException-
+ problem when trying to save null Error: null”
Changed in sikuli:
status: New → Opinion
assignee: nobody → RaiMan (raimund-hocke)
Revision history for this message
tranquillo (rob-tranquillo) wrote :

Error occurs in Version 1.1.0 until today if a indenting is more left than the encircling structure.

Example:

class Foo():
  def bar(self):
    print "john" <-- no problem
 print "doh" <--produce the error

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

seems to not happen anymore in the latest 1.1.1

Changed in sikuli:
status: Opinion → Fix Committed
importance: Undecided → Critical
milestone: none → 1.1.1
summary: - [IDE] run my sikuli project file: “[error] IDE: A non-IOException-
- problem when trying to save null Error: null”
+ [IDE] IDE: on save with indent errors: A non-IOException-problem when
+ trying to save null Error: null --- fixed 1.1.1 2016-05-01+
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.