Failed loading plugins too verbose

John A Meinel john at arbash-meinel.com
Thu Oct 20 03:55:40 BST 2005


The bzr.dev tree is going through a whole bunch of API changes right
now. (the latest is Branch.open_containing() returning a tuple instead
of just the branch, the previous was dropping OPTIONS from bzrlib.commands).

With all of these changes, at least my plugins are breaking almost every
day. And I don't really feel like fixing them right now. I generally
wait until I actually have to use one. I'm okay with them breaking,
because this is dev code, not a full release. The problem is that for
each plugin that doesn't load, we get a full:
bzr: ERROR: Unable to load plugin 'bzrtools' from
'/Users/jameinel/.bazaar/plugins'
bzr: ERROR: cannot import name OPTIONS
  command: '/Users/jameinel/bin/bzr' 'cset'
  pwd: /Users/jameinel/dev/bzr/plugins/changeset
  at /Users/jameinel/.bazaar/plugins/bzrtools/push.py line 17, in ?()
  see ~/.bzr.log for debug information

I would prefer if we only saw that first line. Or maybe the first 2
lines. I would probably say they should be warnings rather than errors.
Right now, on the latest code (with both my plugins and Aaron
Bentley's), just running "bzr st" on an unchanged tree fills my screen
(I write a lot of plugins :)

I can always do --no-plugins, or move my plugins out of the way, or
maybe some other stuff, but it would be nice if the error was small and
concise. So that it didn't interfere so much.

I suppose one solution is to try to load all plugins, and then if there
was a failure to print the "command:" stuff.
That way it would only get printed one time, instead of 5. (I may be a
non-standard case, though)

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051019/be41aa54/attachment.pgp 


More information about the bazaar mailing list