sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05790
Re: [Question #156506]: Getting Indentation error --- only use tab to indent and shift-tab to dedent
Question #156506 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/156506
gregory requested more information:
when try to save the file I have this error
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.sikuli.ide.SikuliIDE$MenuAction.actionPerformed(SikuliIDE.java:1065)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecu
rsive(Unknown Source)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Source)
at javax.swing.JMenuBar.processKeyBinding(Unknown Source)
at javax.swing.KeyboardManager.fireBinding(Unknown Source)
at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusMan
ager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.securit
y.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: Traceback (most recent call last):
File "", line 213, in
File "", line 139, in format
File "", line 139, in format
File "C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.py", line 153, in tokenize
File "C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.py", line 153, in tokenize
File "C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.p
y", line 159, in tokenize_loop
File "C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.py", line 284, in generate_tokens
File "", line 97
def open_smc(self):
^
IndentationError: unindent does not match any outer indentation level
at org.python.core.PyException.fillInStackTrace(PyException.java:70)
at java.lang.Throwable.(Throwable.java:181)
at java.lang.Exception.(Unknown Source)
at java.lang.RuntimeException.(Unknown Source)
at org.python.core.PyException.(PyException.java:46)
at org.python.core.PyException.doRaise(PyException.java:219)
at org.python.core.Py.makeException(Py.java:1225)
at org.python.core.Py.makeException(Py.java:1229)
at org.python.core.Py.makeException(Py.java:1233)
at tokenize$py.generate_tokens$10(C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.py:349)
at tokenize$py.call_function(C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\siku
li-script.jar\Lib\tokenize.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:149)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:131)
at tokenize$py.tokenize_loop$8(C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.py:159)
at tokenize$py.call_function(C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
at org.python.core.PyFunction.__call__(PyFunction.java:327)
at tokenize$py.tokenize$7(C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.py:155)
at tokenize$py.call_function(C:\Program Files (x86)\Sikuli-X-1.0rc3-win32\Sikuli-IDE\sikuli-script.jar\Lib\tokenize.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
at
org.python.core.PyFunction.__call__(PyFunction.java:327)
at org.python.pycode._pyx780.format$3(:147)
at org.python.pycode._pyx780.call_function()
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
at org.python.core.PyFunction.__call__(PyFunction.java:327)
at org.python.core.PyMethod.__call__(PyMethod.java:124)
at org.python.pycode._pyx780.f$0(:202)
at org.python.pycode._pyx780.call_function()
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1261)
at org.python.core.Py.exec(Py.java:1305)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:206)
at org.sikuli.ide.SikuliPane.convertSrcToHtml(SikuliPane.java:248)
at org.sikuli.ide.SikuliPane.writeSrcFile(SikuliPane.java:269)
at org.sikuli.ide.SikuliPane.saveFile(SikuliPane.java:278)
at org.sikuli.ide.SikuliIDE$FileAction.doSave(Si
kuliIDE.java:1425)
... 55 more
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.