Skip to content

%%storage fails in az interactive shell #20088

@robertschaftlein

Description

@robertschaftlein

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\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 657, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 691, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "D:\a\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\rschftlein\.azure\cliextensions\interactive\azext_interactive\__init__.py", line 11, in start_shell
    AzInteractiveShell(cmd.cli_ctx, style)()
  File "C:\Users\rschftlein\.azure\cliextensions\interactive\azext_interactive\azclishell\app.py", line 148, in __call__
    self.run()
  File "C:\Users\rschftlein\.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\rschftlein\.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\rschftlein\.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.

  • Put any pre-requisite steps here...
  • az interactive
  • %%storage

Expected Behavior

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.29.1

Extensions:
interactive 0.4.5

Additional Context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions