Shows traceback when completing commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
Low
|
Unassigned | ||
QBzr |
Fix Released
|
High
|
Lukáš Lalinský |
Bug Description
When I try to auto-complete bzr commands, my first try fails and shows a traceback:
debian% bzr bra[TAB]bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
result = func(*args, **kwargs)
File "/home/
shellcomple
File "/home/
shellcomple
File "/home/
if cmdclass.hidden:
AttributeError: 'LazyCommand' object has no attribute 'hidden'
bzr 1.7rc2 on python 2.5.2 (linux2)
arguments: ['/home/
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'tr_TR.UTF-8'
plugins:
bzr_notification /home/mert/
bzr_stats /home/mert/
bzrtools /home/mert/
diffstat /home/mert/
dns_cache /home/mert/
extmerge /home/mert/
file_revno /home/mert/
gtk /home/mert/
launchpad /home/mert/
lesslog /home/mert/
qbzr /home/mert/
remove_revisions /home/mert/
service /home/mert/
update_mirrors /home/mert/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
nchn
There is no matter if I try to complete branch or checkout, it shows a traceback, but it still completes the command. Following completings doesn't show traceback, only the first one when the shell is opened.
Changed in qbzr: | |
assignee: | nobody → luks |
importance: | Undecided → High |
milestone: | none → 0.9.5 |
status: | New → Confirmed |
Changed in qbzr: | |
status: | Confirmed → Fix Committed |
Changed in qbzr: | |
status: | Fix Committed → Fix Released |
Changed in bzr: | |
status: | Triaged → Confirmed |
'qbzr' is the one which installs a LazyCommand, though it is bzrtools which is probing the registered commands.
I would guess the best fix would be to have LazyCommand proxy requests for attributes (via __getattr__ work).