Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3k forks source link

crash #25127

Open Jaylapirfta opened 1 year ago

Jaylapirfta commented 1 year ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az interactive

Errors:

The command failed with an unexpected error. Here is the traceback:
'NoneType' object has no attribute 'in_tree'
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/interactive/custom.py", line 41, in start_shell
  File "C:\Users\Lapir\.azure\cliextensions\interactive\azext_interactive\__init__.py", line 11, in start_shell
    AzInteractiveShell(cmd.cli_ctx, style)()
  File "C:\Users\Lapir\.azure\cliextensions\interactive\azext_interactive\azclishell\app.py", line 148, in __call__
    self.run()
  File "C:\Users\Lapir\.azure\cliextensions\interactive\azext_interactive\azclishell\app.py", line 721, in run
    b_flag, c_flag, outside, cmd = self._special_cases(cmd, outside)
  File "C:\Users\Lapir\.azure\cliextensions\interactive\azext_interactive\azclishell\app.py", line 521, in _special_cases
    continue_flag, cmd = self.handle_scoping_input(continue_flag, cmd, cmd_stripped)
  File "C:\Users\Lapir\.azure\cliextensions\interactive\azext_interactive\azclishell\app.py", line 600, in handle_scoping_input
    if self.completer.command_tree.in_tree(tree_path):
AttributeError: 'NoneType' object has no attribute 'in_tree'

To Reproduce:

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

Expected Behavior

Environment Summary

Windows-10-10.0.19045-SP0
Python 3.10.8
Installer: MSI

azure-cli 2.44.0 *

Extensions:
arcdata 1.4.10
interactive 0.4.6

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1

Additional Context

yonzhan commented 1 year ago

@jiasli for awareness