Open wshamroukh-zz opened 4 years ago
Which version of the CLI are you using?
@chrmarti i am using the latest i guess - 1.41.1
Version: 1.41.1 (user setup) Commit: 26076a4de974ead31f97692a0d32f90d735645c0 Date: 2019-12-18T14:58:56.166Z Electron: 6.1.5 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18363
What about the az
CLI? What do you get for az --version
?
` az --version azure-cli 2.0.80
command-modules-nspkg 2.0.3 core 2.0.80 nspkg 3.0.4 telemetry 1.0.4
Extensions: azure-firewall 0.1.5 front-door 1.0.2 virtual-wan 0.1.2
Python location 'C:\Python\python.exe' Extensions directory 'C:\Users\waddahs.azure\cliextensions'
Python (Windows) 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Please let us know how we are doing: https://aka.ms/clihats`
Just wanted to follow up on this. It has been annoying dealing with this intellisense issue. I have looked at the devtools, and here is what I see when the intelli-sense doesn't work anymore:
ERR [Extension Host] Traceback (most recent call last):
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\start.py", line 6, in <module>
import azservice.__main__
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 370, in <module>
main()
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 359, in main
response_data = get_completions(group_index, command_table, snippets, request['data'], True)
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 119, in get_completions
return get_argument_value_completions(command_table, query, verbose)
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 187, in get_argument_value_completions
list = get_argument_value_list(command_table, query, verbose) + \
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 205, in get_argument_value_list
values = run_argument_value_completer(command, argument, query['arguments'])
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\tooling2.py", line 158, in run_argument_value_completer
return argument.completer(prefix='', action=None, parsed_args=args)
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\argcomplete/completers.py", line 54, in __call__
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\argcomplete/completers.py", line 12, in _call
File "subprocess.py", line 415, in check_output
File "subprocess.py", line 493, in run
File "subprocess.py", line 858, in __init__
File "subprocess.py", line 1311, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
console.ts:137 [Extension Host] Traceback (most recent call last):
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\start.py", line 6, in <module>
import azservice.__main__
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 370, in <module>
main()
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 359, in main
response_data = get_completions(group_index, command_table, snippets, request['data'], True)
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 119, in get_completions
return get_argument_value_completions(command_table, query, verbose)
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 187, in get_argument_value_completions
list = get_argument_value_list(command_table, query, verbose) + \
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 205, in get_argument_value_list
values = run_argument_value_completer(command, argument, query['arguments'])
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\tooling2.py", line 158, in run_argument_value_completer
return argument.completer(prefix='', action=None, parsed_args=args)
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\argcomplete/completers.py", line 54, in __call__
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\argcomplete/completers.py", line 12, in _call
File "subprocess.py", line 415, in check_output
File "subprocess.py", line 493, in run
File "subprocess.py", line 858, in __init__
File "subprocess.py", line 1311, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
v @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:472
_invokeHandler @ rpcProtocol.ts:457
_receiveRequest @ rpcProtocol.ts:373
_receiveOneMessage @ rpcProtocol.ts:295
(anonymous) @ rpcProtocol.ts:160
fire @ event.ts:577
fire @ ipc.net.ts:513
_receiveMessage @ ipc.net.ts:871
(anonymous) @ ipc.net.ts:710
fire @ event.ts:577
acceptChunk @ ipc.net.ts:286
(anonymous) @ ipc.net.ts:247
_ @ ipc.net.ts:50
emit @ events.js:315
addChunk @ internal/streams/readable.js:309
readableAddChunk @ internal/streams/readable.js:284
Readable.push @ internal/streams/readable.js:223
onStreamRead @ internal/stream_base_commons.js:188
log.ts:301 ERR [Extension Host] Exit code 0, signal null
console.ts:137 [Extension Host] Exit code 0, signal null
v @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:472
_invokeHandler @ rpcProtocol.ts:457
_receiveRequest @ rpcProtocol.ts:373
_receiveOneMessage @ rpcProtocol.ts:295
(anonymous) @ rpcProtocol.ts:160
fire @ event.ts:577
fire @ ipc.net.ts:513
_receiveMessage @ ipc.net.ts:871
(anonymous) @ ipc.net.ts:710
fire @ event.ts:577
acceptChunk @ ipc.net.ts:286
(anonymous) @ ipc.net.ts:247
_ @ ipc.net.ts:50
emit @ events.js:315
addChunk @ internal/streams/readable.js:309
readableAddChunk @ internal/streams/readable.js:284
Readable.push @ internal/streams/readable.js:223
onStreamRead @ internal/stream_base_commons.js:188
log.ts:301 ERR Python process terminated with exit code 0, signal null.
There should be a c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py
file. Is that not there?
It is there:
dir C:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice
Directory: C:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 12/10/2021 10:43 AM __pycache__
-a--- 11/10/2021 11:28 PM 367 __init__.py
-a--- 11/10/2021 11:28 PM 194 __init__.pyc
-a--- 11/10/2021 11:28 PM 18295 __main__.py
-a--- 11/10/2021 11:28 PM 1017 tooling.py
-a--- 11/10/2021 11:28 PM 856 tooling.pyc
-a--- 11/10/2021 11:28 PM 6144 tooling1.py
-a--- 11/10/2021 11:28 PM 7048 tooling2.py
Now I see this error when the intellisense stops working:
ERR [Extension Host] Traceback (most recent call last):
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\start.py", line 6, in <module>
import azservice.__main__
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 370, in <module>
main()
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 341, in main
keep_loading = load_arguments(command_table, 10)
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\tooling2.py", line 87, in load_arguments
cli_ctx.invocation.commands_loader.load_arguments(command)
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/__init__.py", line 517, in load_arguments
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 313, in load_arguments
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/commands.py", line 104, in load_arguments
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
File "importlib\__init__.py", line 127, in import_module
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/lab/custom.py", line 32, in <module>
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 733, in get_default_admin_username
File "getpass.py", line 168, in getuser
ModuleNotFoundError: No module named 'pwd'
console.ts:137 [Extension Host] Traceback (most recent call last):
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\start.py", line 6, in <module>
import azservice.__main__
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 370, in <module>
main()
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\__main__.py", line 341, in main
keep_loading = load_arguments(command_table, 10)
File "c:\Users\myuser\.vscode\extensions\ms-vscode.azurecli-0.5.0\service\azservice\tooling2.py", line 87, in load_arguments
cli_ctx.invocation.commands_loader.load_arguments(command)
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/__init__.py", line 517, in load_arguments
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 313, in load_arguments
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/commands.py", line 104, in load_arguments
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
File "importlib\__init__.py", line 127, in import_module
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/lab/custom.py", line 32, in <module>
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 733, in get_default_admin_username
File "getpass.py", line 168, in getuser
ModuleNotFoundError: No module named 'pwd'
log.ts:301 ERR [Extension Host] Exit code 0, signal null
console.ts:137 [Extension Host] Exit code 0, signal null
Hi Team,
I have noticed this since i started working on Azure CLI Tools extension. The intelliSense doesn't kick in at all and if i press ctrl+space to force it to show suggestions, the loading message stays there forever. The only way to get it to run back, is by closing vscode and reopen it
here is what i see from the console
ERR canceled console.ts:137 [Extension Host] Completions not found (network route-table route create --address-prefix) t.log @ console.ts:137 console.ts:137 [Extension Host] Completions not found (network route-table route create --name) t.log @ console.ts:137 3log.ts:196 ERR canceled console.ts:137 [Extension Host] Completions not found (network route-table route create --next-hop-ip-address) t.log @ console.ts:137 6log.ts:196 ERR canceled console.ts:137 [Extension Host] Completions not found (network vnet subnet update --name) t.log @ console.ts:137 2log.ts:196 ERR canceled console.ts:137 [Extension Host] Completions not found (network vnet subnet update --name) t.log @ console.ts:137 6log.ts:196 ERR canceled console.ts:137 [Extension Host] Traceback (most recent call last): File "c:\Users\waddahs\.vscode\extensions\ms-vscode.azurecli-0.4.6\service\start.py", line 6, in <module> import azservice.__main__ File "c:\Users\waddahs\.vscode\extensions\ms-vscode.azurecli-0.4.6\service\azservice\__main__.py", line 370, in <module> main() File "c:\Users\waddahs\.vscode\extensions\ms-vscode.azurecli-0.4.6\service\azservice\__main__.py", line 356, in main response_data = get_hover_text(group_index, command_table, request['data']['command']) File "c:\Users\waddahs\.vscode\extensions\ms-vscode.azurecli-0.4.6\service\azservice\__main__.py", line 262, in get_hover_text return { 'paragraphs': [ '
' + ' '.join(get_options(argument.options_list)) + '' + ('*' if req else '') + ': ' + argument.type.settings.get('help') TypeError: can only concatenate str (not "NoneType") to str t.log @ console.ts:137 console.ts:137 [Extension Host] Exit code 0, signal null t.log @ console.ts:137 console.ts:137 [Extension Host] Python process terminated with exit code 0, signal null. t.log @ console.ts:137 log.ts:196 ERR Python process terminated with exit code 0, signal null. console.ts:137 [Extension Host] Traceback (most recent call last): File "c:\Users\waddahs\.vscode\extensions\ms-vscode.azurecli-0.4.6\service\start.py", line 6, in <module> import azservice.__main__ File "c:\Users\waddahs\.vscode\extensions\ms-vscode.azurecli-0.4.6\service\azservice\__main__.py", line 370, in <module> main() File "c:\Users\waddahs\.vscode\extensions\ms-vscode.azurecli-0.4.6\service\azservice\__main__.py", line 356, in main response_data = get_hover_text(group_index, command_table, request['data']['command']) File "c:\Users\waddahs\.vscode\extensions\ms-vscode.azurecli-0.4.6\service\azservice\__main__.py", line 262, in get_hover_text return { 'paragraphs': [ '
' + ' '.join(get_options(argument.options_list)) + '' + ('*' if req else '') + ': ' + argument.type.settings.get('help') TypeError: can only concatenate str (not "NoneType") to str t.log @ console.ts:137 console.ts:137 [Extension Host] Exit code 0, signal null t.log @ console.ts:137 log.ts:196 ERR Python process terminated with exit code 0, signal null. 3log.ts:196 ERR canceled console.ts:137 [Extension Host] Completions not found (network vnet subnet update --route-table) t.log @ console.ts:137 31log.ts:196 ERR canceled 3log.ts:196 ERR canceled
Any help is really appreciated