[wingide-users] RE: integraton with pyflakes
Idan Zaltzberg
idan at itstructures.com
Fri Oct 2 01:35:18 MDT 2009
By the way I forgot to mention the compile.parse works fine whenever I run
it outside the script (like in the embedded python shell).
Even when I run it with exactly the same arguments. I also made sure the
module is loaded from the same location.
Any ideas?
*From:* Idan Zaltzberg [mailto:idan at itstructures.com]
*Sent:* Friday, October 02, 2009 9:22 AM
*To:* 'wingide-users at wingware.com'
*Subject:* integraton with pyflakes
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/bc79f955/attachment.html
More information about the wingide-users
mailing list