Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ai-did-you-mean-this extension is not loaded after a first run #14175

Closed
fengzhou-msft opened this issue Jul 2, 2020 · 1 comment · Fixed by #14180
Closed

ai-did-you-mean-this extension is not loaded after a first run #14175

fengzhou-msft opened this issue Jul 2, 2020 · 1 comment · Fixed by #14180
Assignees
Labels
Core CLI core infrastructure
Milestone

Comments

@fengzhou-msft
Copy link
Member

fengzhou-msft commented Jul 2, 2020

This is autogenerated. Please review and update as needed.

Describe the bug

With the latest dev branch code, ai-did-you-mean-this extension is not loaded after a first run.
It cloud be related to #13294.

Command Name

Errors:
The log shows that ai-did-you-mean-this extension is not loaded.

Command arguments: ['account', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x03CDC390>, <function OutputProducer.on_global_arguments at 0x03D48C48>, <function CLIQuery.on_global_arguments at 0x03D6BE88>]
Event: CommandInvoker.OnPreCommandTableCreate []
Modules found from index for 'account': ['azure.cli.command_modules.profile', 'azure.cli.command_modules.resource']
Loading command modules:
Extension             Load Time    Groups  Commands
profile                   0.006         2         9
resource                  0.014        34       155
Total (2)                 0.019        36       164
Loaded 35 groups, 164 commands.
Found a match in the command table for 'account'
Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x03ED0B28>]
Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x03F0EE88>]
Event: CommandInvoker.OnPostArgumentLoad []
Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x03F22078>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x03F22108>]
Event: CommandInvoker.OnCommandTableLoaded []
Event: CommandInvoker.OnPreParseArgs []
cli.azure.cli.core.parser : az account: error: the following arguments are required: _subcommand
az account: error: the following arguments are required: _subcommand
usage: az account [-h]
                  {list,set,show,clear,list-locations,get-access-token,lock,management-group}
                  ...
recommendation_provider: version: 2.8.0, command: account, parameters: ['--debug'], extension: None
Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x03ED0C48>]
telemetry.save : Save telemetry record of length 2578 in cache
telemetry.check : Returns Positive.
telemetry.main : Begin creating telemetry upload process.
telemetry.process : Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\telemetry\__init__.pyc C:\Users\fenzhou\.azure"
telemetry.process : Return from creating process
telemetry.main : Finish creating telemetry upload process.
Command ran in 0.470 seconds (init: 0.064, invoke: 0.406)

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az account --debug

Expected Behavior

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.8.0

Extensions:
ai-did-you-mean-this 0.2.0

Additional Context

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 2, 2020
@triage-new-issues triage-new-issues bot added triage and removed triage labels Jul 2, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 2, 2020
@jiasli jiasli self-assigned this Jul 2, 2020
@yonzhan yonzhan added the Core CLI core infrastructure label Jul 2, 2020
@yonzhan yonzhan added this to the S172 milestone Jul 2, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 2, 2020

add to S172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core CLI core infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants