← Back to team overview

sikuli-driver team mailing list archive

[Bug 940798] Re: IDE incorrectly interprets a tabs

 

This is not a bug. see comment on question.

** Changed in: sikuli
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/sikuli/+question/188816

** Summary changed:

- IDE incorrectly interprets a tabs
+ IDE incorrectly interprets indentation tabs when edited with other editor

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/940798

Title:
  IDE incorrectly interprets indentation tabs when edited with other
  editor

Status in Sikuli:
  Invalid

Bug description:
  1) Sikuli IDE 1.0rc3(r905)
  2) Windows XP (5.1.2600) 32 bit, Java 1.7.0_01
  3) Example of affected code (example_file.py):

  for row in input_table:
   CPregion.type(Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+Key.BACKSPACE+row+Key.F8)

   if CPregion.exists(Pattern("1330069906203.png").similar(0.96)):
              CPregion.click(Pattern("1330069906203.png").similar(0.90))
              CPregion.type('polska'+Key.F8+Key.ENTER)
              CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))
          else:
              CPregion.click(Pattern("POI-2.png").similar(0.80))
              CPregion.type('POLSKA'+Key.F8+Key.ENTER)
              CPregion.click(Pattern("ZipCade-1.png").similar(0.90).targetOffset(168,3))

  Line containing "else" is affected. In source file there are two tabs
  but in IDE i have to put three, that is is very confusing. I think
  screenshot would be better explanation, so Im sending the same part of
  code in IDE. In case "else" clause is on "if" level, IDE produces py
  code that does not work correctly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/940798/+subscriptions


References