run_nodes plugins doesn't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
leo-editor |
Fix Released
|
Wishlist
|
Edward K. Ream |
Bug Description
Hi,
the run_nodes plugins doesn't work:
- with qt it does nothing
- with tk sometimes does nothing, sometimes raises errors, like
Exception in thread Thread-6:
Traceback (most recent call last):
File "/usr/lib/
__bootstrap_inner
self.run()
File "/usr/local/
in run
s=self.
IOError: [Errno 9] Bad file descriptor
Traceback (most recent call last):
File "/usr/local/
in doHook
return f(tag,keywords)
File "/usr/local/
in doPlugins
return doHandlersForTa
File "/usr/local/
in doHandlersForTag
val = callTagHandler(
File "/usr/local/
in callTagHandler
result = handler(
File "/usr/local/
in OnIdle
OpenProcess(fn)
File "/usr/local/
in OpenProcess
RunNode.
File "/usr/local/
__getattr__
raise AttributeError(
AttributeError: c
This bug was first notified to the leo-editor group (thread with subject "Problem with the run_nodes plugin").
Vicent
Changed in leo-editor: | |
importance: | Undecided → Medium |
Changed in leo-editor: | |
importance: | Medium → Wishlist |
Changed in leo-editor: | |
status: | Confirmed → Fix Released |
I can confirm this problem on rev. 1466. If you sidestep this error by commenting out the code which marks the node, there is still another problem with the stdin/out/err file descriptor. I looked at it for a bit and tried replacing the popen3 call with subprocess.Popen, with no command output for interactive programs (e.g. "python") (non-interactive programs like "ps" work fine). Perhaps using the Popen.communicate() method would work?