error while searching code (via '/' key) during debug session #13

Closed
jtriley opened this Issue Aug 4, 2011 · 5 comments

2 participants

@jtriley

Traceback (most recent call last):
File "/home/jtriley/py-workspace/starcluster/starcluster/cluster.py", line 1316, in run_plugin
func(args)
File "/home/jtriley/py-workspace/starcluster/starcluster/plugins/tmux.py", line 152, in run
self.setup_tmuxcc(user='root')
File "/home/jtriley/py-workspace/starcluster/starcluster/plugins/tmux.py", line 119, in setup_tmuxcc
if node.alias != client.alias:
File "/home/jtriley/py-workspace/starcluster/starcluster/plugins/tmux.py", line 119, in setup_tmuxcc
if node.alias != client.alias:
File "/usr/lib/python2.6/bdb.py", line 46, in trace_dispatch
return self.dispatch_line(frame)
File "/usr/lib/python2.6/bdb.py", line 64, in dispatch_line
self.user_line(frame)
File "/home/jtriley/py-workspace/pudb/pudb/debugger.py", line 233, in user_line
self.interaction(frame)
File "/home/jtriley/py-workspace/pudb/pudb/debugger.py", line 202, in interaction
self.ui.call_with_ui(self.ui.interaction, exc_tuple)
File "/home/jtriley/py-workspace/pudb/pudb/debugger.py", line 1177, in call_with_ui
return f(
args, **kwargs)
File "/home/jtriley/py-workspace/pudb/pudb/debugger.py", line 1286, in interaction
self.event_loop()
File "/home/jtriley/py-workspace/pudb/pudb/debugger.py", line 1248, in event_loop
toplevel.keypress(self.size, k)
File "/home/jtriley/py-workspace/pudb/pudb/ui_tools.py", line 82, in keypress
result = self._w.keypress(size, key)
File "/home/jtriley/.virtualenvs/starcluster/lib/python2.6/site-packages/urwid/container.py", line 616, in keypress
return self.body.keypress( (maxcol, remaining), key )
File "/home/jtriley/.virtualenvs/starcluster/lib/python2.6/site-packages/urwid/container.py", line 1340, in keypress
key = w.keypress( (mc,)+size[1:], key )
File "/home/jtriley/.virtualenvs/starcluster/lib/python2.6/site-packages/urwid/container.py", line 902, in keypress
key = self.focus_item.keypress( tsize, key )
File "/home/jtriley/py-workspace/pudb/pudb/ui_tools.py", line 208, in keypress
self.ui.search_AttrMap.set_attr("search box")
AttributeError: 'AttrMap' object has no attribute 'set_attr'

@jtriley

seems to happen anytime I search even if I search immediately after opening PuDB...

@livibetter

I can confirm this and I got this from bisecting (@af67e9c) :

af67e9ca2ba7e1896ee5055234459823f6dd7cb7 is the first bad commit
commit af67e9ca2ba7e1896ee5055234459823f6dd7cb7
Author: Aaron Meurer <asmeurer@gmail.com>
Date:   Wed Jul 27 16:28:53 2011 -0600

    Replace urwid.AttrWrap with urwid.AttrMap

    According to the urwid docs, AttrWrap is deprecated, and AttrMap should
    be used instead.  This seems to still work the same everywhere, though I
    didn't check it extensively.

:040000 040000 abd3ff53c6d14553d55bab1f15080d8d7b476963 f41c454f600ae149fa567d60
704d4166e916589b M      pudb
bisect run success

Also fix in livibetter@36392c7, please pull it.

@jtriley

You beat me to it, I was just about to fork and pull request :P Thanks!!

@jtriley

I just noticed there's no pull request. Would you mind submitting one?

@livibetter

Err... I knew pull request will create a new issue, trying to avoid that. It's kind of duplicating issue since here is the one.

@jtriley jtriley closed this Aug 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment