Tab completion is painfully slow. See repro.
Command Name
az
Errors:
az in the terminalAnother example:
az devops or az boards in the terminal-- no matches found -- output.A response should be given immediately with no delay and it should not be picky about whether there is a space after the last command.
The entire autocompletion process is way too slow. Type git and hit tab and you get an _instant_ response with completions with nice formatting. This has got to be better in the azure cli. 1-2s is too long, but 5 seconds is just shameful especially having it return no results after, only to work after hitting space.
Please let me know if you need any more information to help prioritize this work, feel free to reach out to me via email or teams via my alias: jiboulte.
Darwin-18.2.0-x86_64-i386-64bit
Python 3.7.3
Shell: bash
azure-cli 2.0.62
Extensions:
azure-devops 0.4.0
Python location '/usr/local/Cellar/azure-cli/2.0.62/libexec/bin/python'
Extensions directory '/Users/jiboulte/.azure/cliextensions'
Python (Darwin) 3.7.3 (default, Apr 19 2019, 09:07:31)
[Clang 10.0.1 (clang-1001.0.46.3)]
It can't repro on Windows. It may be Mac/Linux only issue.
@jboulter11 , can you try other commands (not az) to see if it has the same issue. I think it may the OS issue not az command issue.
Other commands provide an instant response. az and its nested commands are what is slow, my OS is fine.
@tjprescott, @limingu, I would be interested in this post build. We should try and imitate powershell. Maddie once mentioned how they cache tab completions...
add to S164.
I second the observation provided here. I'm on a mac, first time using AZ CLI and first thing I noticed is wow, this command completion is super slow. Googled the issue hoping to find a resolution and this issue report is the first thing I came across.
The slowness is due to fact that auto-complete is achieved by calling az again with the prefix given in the terminal. Azure CLI now contains thousands of commands and loading these commands makes it slow.
We will try to improve the performance in the future.
Most helpful comment
The slowness is due to fact that auto-complete is achieved by calling
azagain with the prefix given in the terminal. Azure CLI now contains thousands of commands and loading these commands makes it slow.We will try to improve the performance in the future.