Azure / Azure/azure-cli

%%storage fails in az interactive shell

Open
#20,088 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-codegen-extensibility-squad customer-reported feature-request Interactive
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.