Hi, On Fri, Jan 22, 2010 at 10:07:25AM +0000, Patrick Zwahlen wrote: > Hi all, > > I am trying to figure out why tab-tab completion doesn't work anymore after > upgrading from 1.0.6 to 1.0.7 > > I am running pacemaker 1.0.7/corosync 1.2.0 on CentOS 5.4 x86_64 (All RPM) > > When I enter the 'crm', tab-tab gives me a list of the top-level options. > Good ! > > If I type 'node'+tab-tab, I get nothing. > > If I type 'node help'+enter, I get the list of node's subcommand. > > If I now type 'node'+tab-tab again, I get correct completion ! Any clue why > this > didn't work at the first place ?
Yes. Until 1.0.7, crm would build all completion tabs at startup. Then, as of 1.0.7 it also loads the help directly from the manual. It turned out that the startup time would be quite high, so I made both the help and completion tabs lazy built, i.e. they are done only when the user enters a level (and cached). That's exactly what you saw. Anyway, you can open an enhancement bugzilla and I'll see if we can get all completion tabs built if we're in an interactive session. And how would that affect performance. Thanks, Dejan > Thanks for any hint, and have a nice day everyone. - Patrick - > > > > _______________________________________________ > Pacemaker mailing list > Pacemaker@oss.clusterlabs.org > http://oss.clusterlabs.org/mailman/listinfo/pacemaker _______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker