[wingide-users] integraton with pyflakes

Idan Zaltzberg idan at itstructures.com
Fri Oct 2 01:21:46 MDT 2009


Hi,

I'm trying to integrate the IDE with pyflakes using scripts but I'm always
failing at the compiler.parse.

Any ideas why?



The exception:



Error::Error executing script
.user.internal_script_c0x3a0x5cwingscripts_test.test_script

Runtime failure details:

Exception: "<type 'exceptions.KeyError'>"

Value = '328'

Traceback:

  File "C:\src\ide\bin\2.5\src\command\commandmgr.pyo", line 804, in Execute

  File "c:\wingscripts\test.py", line 15, in test_script

    tree = compiler.parse(file(filename,'U').read())

  File "c:\python24\lib\compiler\transformer.py", line 52, in parse

    return Transformer().parsesuite(buf)

  File "c:\python24\lib\compiler\transformer.py", line 129, in parsesuite

    return self.transform(parser.suite(text))

  File "c:\python24\lib\compiler\transformer.py", line 125, in transform

    return self.compile_node(tree)

  File "c:\python24\lib\compiler\transformer.py", line 158, in compile_node

    return self.file_input(node[1:])

  File "c:\python24\lib\compiler\transformer.py", line 189, in file_input

    self.com_append_stmt(stmts, node)

  File "c:\python24\lib\compiler\transformer.py", line 1028, in
com_append_stmt

    result = self.lookup_node(node)(node[1:])

  File "c:\python24\lib\compiler\transformer.py", line 303, in stmt

    return self.com_stmt(nodelist[0])

  File "c:\python24\lib\compiler\transformer.py", line 1021, in com_stmt

    result = self.lookup_node(node)(node[1:])

  File "c:\python24\lib\compiler\transformer.py", line 303, in stmt

    return self.com_stmt(nodelist[0])

  File "c:\python24\lib\compiler\transformer.py", line 1021, in com_stmt

    result = self.lookup_node(node)(node[1:])

  File "c:\python24\lib\compiler\transformer.py", line 753, in lookup_node

    return self._dispatch[node[0]]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20091002/2f247757/attachment.html


More information about the wingide-users mailing list