On Tuesday 17 December 2013, Archie Cobbs wrote:
On Tue, Dec 17, 2013 at 8:56 AM, Archie Cobbs
wrote: On Tue, Dec 17, 2013 at 4:48 AM, Ruediger Meier
wrote: osc tab completion is broken since always. If wanted I could give you many utterly broken examples but I can't imagine that there is someone who does not know the problems. Does it acually does something useful for somebody?
It has never worked for me either. It always just hangs.
I always thought it was just me, but now I'm glad to have company :)
I did a little investigation. It hangs running the command "osc ls /" which can take an arbitrarily long time due to network delays, build server load, etc.
It's broken in so many ways... For example if you try to redirect the output $ osc rdiff devel:libraries:c_c++/ginac science/ginac > /tm<TAB> ... takes ages as usuallly and then ... Server returned an error: HTTP Error 400: Bad Request invalid project name '>' p/Server returned an error: HTTP Error 400: Bad Request invalid project name '>' Or this one for new users without config, You would need to create an obs account to let the completion work on your local machine... $ mv ~/.osc.projects ~/.osc.projects.bak $ mv ~/.oscrc ~/.oscrc.bak $ osc <TAB> Your user account / password are not configured yet. You will be asked for them below, and they will be stored in /home/rudi/.oscrc for future use. Creating osc configuration file /home/rudi/.oscrc ... ... will hang forever ... Or even an (almost) working example without network access after projects are cached already: $ osc rdiff ho<TAB> ... takes 30 secs 100% CPU to complete it to $ osc rdiff home: ... and then $ osc rdiff home:r<TAB> ... takes another 20 secs to complete it to $ osc rdiff home:home:r ... but such project does not exists
IMHO completion scripts should not be performing network I/O.
At least this has to be disabled by default. Users with fast network or with enough time to wait for the funny, broken completions could enable it. cu, Rudi -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org