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

No intellisense/autocomplete #19

Closed
lunar87 opened this issue Aug 31, 2017 · 37 comments
Closed

No intellisense/autocomplete #19

lunar87 opened this issue Aug 31, 2017 · 37 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@lunar87
Copy link

lunar87 commented Aug 31, 2017

Running VSCode on Windows, installed CLI, running commands works, but there is no intellisense

@chrisdias
Copy link
Member

I'm seeing the same things. The performance of Python and the underlying CLI on Windows seems to be an issue. You have to wait for the extension to pick up the login (you'll see the status in the status bar) and then you will start to see completions. However, if you type quickly, back up, etc. you can see the completion list gets confused. Here I'm at az but it is showing me completions for webapp:

image

I think this is because I typed in az webapp a few times, backed up, press ctrl+space a few times, etc.

@chrisdias
Copy link
Member

az cli version 2.0.15
python version 3.6.1

@chrisdias
Copy link
Member

chrisdias commented Sep 3, 2017

related to #13 and #15 and #10?

@chrmarti chrmarti self-assigned this Sep 13, 2017
@chrmarti chrmarti added this to the September 2017 milestone Sep 13, 2017
chrmarti added a commit that referenced this issue Sep 14, 2017
@chrisdias
Copy link
Member

works much better on windows!

@vykhand
Copy link

vykhand commented Oct 16, 2017

Dear all, I am on az 2.0.18, and the issue still takes place. Can we please reopen the issue?
Sometimes I notice that if I start typing it gives me suggestions (not always!) but when I press ctrl-space it shows loading.

image

@chrisdias
Copy link
Member

@chrmarti i'm seeing the same regression of the experience on windows over the weekend...

@chrisdias chrisdias reopened this Oct 16, 2017
@chrmarti chrmarti modified the milestones: September 2017, October 2017 Oct 16, 2017
@chrmarti
Copy link
Contributor

Cannot reproduce with az 2.0.20, could you retry with that?

@chrmarti
Copy link
Contributor

chrmarti commented Nov 7, 2017

@jonathanmoons @chrisdias Could you retry with the latest CLI? (It worked for me with 2.0.20.)

@chrmarti chrmarti removed this from the October 2017 milestone Nov 8, 2017
@blelem
Copy link

blelem commented Feb 23, 2018

Same problem here. Text is colored ok, running commands works, but intellisense doesn't offer any suggestions.
azure-cli (2.0.27)
VScode version 1.20
python version 3.6.4
Mac High Sierra
screen shot 2018-02-23 at 15 10 01

@chrmarti
Copy link
Contributor

@blelem Is this with the Azure CLI installed with Homebrew? Is there anything in the console (Help > Toggle Developer Tools)?

@vykhand
Copy link

vykhand commented Mar 28, 2018

Hi guys, I still have this problem. What do you think is the root cause? If you point me to it I may try to fix it.

@chrmarti
Copy link
Contributor

@vykhand Which versions of this extension, VS Code and the Azure CLI are you using? Make sure all are at the latest released version. If the problem persists, please check if there are any errors in the console (Help > Toggle Developer Tools).

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Apr 4, 2018
@mcollier
Copy link

mcollier commented Apr 4, 2018

Same problems for me.

  • Version 1.21.1
  • Commit 79b44aa704ce542d8ca4a3cc44cfca566e7720f1
  • Date 2018-03-14T14:46:47.128Z
  • Shell 1.7.9
  • Renderer 58.0.3029.110
  • Node 7.9.0
  • Architecture x64

Azure CLI Tools v0.4.1

Azure CLI 2.0.30

Python 3.6.0 :: Anaconda 4.3.0

vscode azure cli tool error

@chrmarti
Copy link
Contributor

chrmarti commented Apr 5, 2018

The stacktrace suggests that you are running a CLI version < 2.0.24. Could there be an old version on the PATH? What is the CLI version you get when running az --version from a command prompt?

@vykhand
Copy link

vykhand commented Apr 5, 2018

Hi Christof, @chrmarti I am running az cli that is installed together with Azure Machine Learning workbench. In the past, I tried to update to the latest version and it did not help the issue.

C:\10.DEV_REPOS\kaggle-jigsaw>az --version
azure-cli (2.0.17)

VS Code:
Version 1.21.1
Commit 79b44aa704ce542d8ca4a3cc44cfca566e7720f1
Date 2018-03-14T14:46:47.128Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

@mcollier
Copy link

mcollier commented Apr 5, 2018

@chrmarti Running az --version results in the following:

azure-cli (2.0.30)

acr (2.0.22)
acs (2.0.30)
advisor (0.5.0)
appservice (0.1.30)
backup (1.1.0)
batch (3.1.11)
batchai (0.1.6)
billing (0.1.7)
cdn (0.0.13)
cloud (2.0.12)
cognitiveservices (0.1.11)
command-modules-nspkg (2.0.1)
configure (2.0.14)
consumption (0.2.2)
container (0.1.20)
core (2.0.30)
cosmosdb (0.1.19)
dla (0.0.18)
dls (0.0.20)
eventgrid (0.1.11)
eventhubs (0.1.1)
extension (0.0.11)
feedback (2.1.0)
find (0.2.8)
interactive (0.3.18)
iot (0.1.18)
keyvault (2.0.20)
lab (0.0.20)
monitor (0.1.4)
network (2.0.26)
nspkg (3.0.2)
profile (2.0.21)
rdbms (0.2.0)
redis (0.2.11)
reservations (0.1.1)
resource (2.0.26)
role (2.0.21)
servicebus (0.1.1)
servicefabric (0.0.11)
sql (2.0.24)
storage (2.0.30)
vm (2.0.29)

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\mcollier\.azure\cliextensions'

Python (Windows) 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]

Where do you see the suggestion that the Azure CLI is < 2.0.24?

@chrmarti
Copy link
Contributor

chrmarti commented Apr 6, 2018

@vykhand Please update to the latest CLI version. We had reports of significant performance improvements starting with 2.0.24.

@mcollier I see it using the pre-2.0.24 CLI's API in your screenshot. That also shows it using CLI modules in your AppData\Roaming folder when it should use those in C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2. For some reason it mixes up the two versions. What is your PYTHONPATH set to?

@mcollier
Copy link

mcollier commented Apr 6, 2018

@chrmarti I don't see a PYTHONPATH environment variable. In my PATH environment variable, I do see 'C:\Users\mcollier\AppData\Roaming\Python\Python36\Scripts'.

I found a StackOverflow post which suggested running python -c "import sys; print('\n'.join(sys.path))". The resulted in the following:
C:\Program Files\Anaconda3\python36.zip
C:\Program Files\Anaconda3\DLLs
C:\Program Files\Anaconda3\lib
C:\Program Files\Anaconda3
C:\Users\mcollier\AppData\Roaming\Python\Python36\site-packages
C:\Program Files\Anaconda3\lib\site-packages
C:\Program Files\Anaconda3\lib\site-packages\Sphinx-1.5.1-py3.6.egg
C:\Program Files\Anaconda3\lib\site-packages\win32
C:\Program Files\Anaconda3\lib\site-packages\win32\lib
C:\Program Files\Anaconda3\lib\site-packages\Pythonwin
C:\Program Files\Anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg

@chrmarti
Copy link
Contributor

chrmarti commented Apr 9, 2018

@mcollier What do you get for "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -c "import sys; print('\n'.join(sys.path))"?

@mcollier
Copy link

@chrmarti, I get the following:

C:\Users\mcollier>"C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -c "import sys; print('\n'.join(sys.path))"

C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python36.zip
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\DLLs
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2
C:\Users\mcollier\AppData\Roaming\Python\Python36\site-packages
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages

C:\Users\mcollier>

@chrmarti
Copy link
Contributor

@derekbekoe Any idea why the AppData\Roaming folder makes it to the lookup paths?

@vscodebot vscodebot bot closed this as completed Apr 19, 2018
@vscodebot
Copy link

vscodebot bot commented Apr 19, 2018

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@mcollier
Copy link

@chrmarti Is there a way to reopen this issue?

@derekbekoe Any thoughts on the AppData\Roaming question asked by @chrmarti?

@chrmarti chrmarti reopened this Apr 20, 2018
@chrmarti chrmarti added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Apr 20, 2018
@alandevos
Copy link

alandevos commented Jun 7, 2018

having the same issue (on multiple machines). console displays following error:

C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe: No module named azservice

@chrmarti
Copy link
Contributor

chrmarti commented Jun 8, 2018

@alandevos What do you get for "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -c "import sys; print('\n'.join(sys.path))"?

@alandevos
Copy link

C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python36.zip
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages

@chrmarti
Copy link
Contributor

@alandevos I wonder if in your case the extension is not correctly installed. Could you try uninstalling the Azure CLI extension, (importantly) restart VS Code and then reinstall the extension?

@chrmarti
Copy link
Contributor

@alandevos We will track your issue as #35.

@chrmarti
Copy link
Contributor

Could everyone seeing this update to the latest Azure CLI (2.0.37) and Azure CLI extension (0.4.2) and check if this is still a problem?

@samhodgkinson
Copy link

Testing on version 2.0.55 AzureCLI, Azure CLI extension (0.4.2). Intelisense does not work.

@chrmarti
Copy link
Contributor

@samhodgkinson Are there any errors in the console (Help > Toggle Developer Tools)?

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Jan 29, 2019
@samhodgkinson
Copy link

There are a few issues but none I can see for ms-vscode.azurecli, let me know If there are any log files I can attach.

@azMantas
Copy link

azMantas commented Apr 10, 2019

The same issue here, no intellisense/autocomplete
Azure cli 2.062
Python 3.6.6
win 10
image

@vermegi
Copy link

vermegi commented Apr 18, 2019

Same issue here
azure cli 2.0.62
windows 10
azcli tools 0.4.4
image

@shaun-cox
Copy link

shaun-cox commented Apr 18, 2019

Same issue here.

console.ts:134 [Extension Host] Traceback (most recent call last):
  File "C:\Users\shaun\.vscode\extensions\ms-vscode.azurecli-0.4.4\service\start.py", line 6, in <module>
    import azservice.__main__
  File "C:\Users\shaun\.vscode\extensions\ms-vscode.azurecli-0.4.4\service\azservice\__main__.py", line 17, in <module>
    from azservice.tooling import GLOBAL_ARGUMENTS, initialize, load_command_table, get_help, get_current_subscription, get_configured_defaults, get_defaults, is_required, run_argument_value_completer, get_arguments, load_arguments, arguments_loaded
  File "C:\Users\shaun\.vscode\extensions\ms-vscode.azurecli-0.4.4\service\azservice\tooling.py", line 12, in <module>
    from azservice.tooling2 import GLOBAL_ARGUMENTS, initialize, load_command_table, get_help, get_current_subscription, get_configured_defaults, get_defaults, is_required, run_argument_value_completer, get_arguments, load_arguments, arguments_loaded
  File "C:\Users\shaun\.vscode\extensions\ms-vscode.azurecli-0.4.4\service\azservice\tooling2.py", line 17, in <module>
    from azure.cli.core._config import GLOBAL_CONFIG_PATH, DEFAULTS_SECTION
ImportError: cannot import name 'DEFAULTS_SECTION'

Seems caused by this change in azure-cli:
Azure/azure-cli#8940 (comment)

VSCode Version: 1.33.1 (user setup)
Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8
Date: 2019-04-11T08:27:14.102Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17763
azure-cli 2.0.62
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\shaun\.azure\cliextensions'
Python (Windows) 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.

@LudwikBielczynski
Copy link

Same issue here:
Traceback (most recent call last): File "/opt/az/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/opt/az/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/ludwik/.vscode/extensions/ms-vscode.azurecli-0.4.4/service/azservice/__main__.py", line 17, in <module> from azservice.tooling import GLOBAL_ARGUMENTS, initialize, load_command_table, get_help, get_current_subscription, get_configured_defaults, get_defaults, is_required, run_argument_value_completer, get_arguments, load_arguments, arguments_loaded File "/home/ludwik/.vscode/extensions/ms-vscode.azurecli-0.4.4/service/azservice/tooling.py", line 12, in <module> from azservice.tooling2 import GLOBAL_ARGUMENTS, initialize, load_command_table, get_help, get_current_subscription, get_configured_defaults, get_defaults, is_required, run_argument_value_completer, get_arguments, load_arguments, arguments_loaded File "/home/ludwik/.vscode/extensions/ms-vscode.azurecli-0.4.4/service/azservice/tooling2.py", line 17, in <module> from azure.cli.core._config import GLOBAL_CONFIG_PATH, DEFAULTS_SECTION ImportError: cannot import name 'DEFAULTS_SECTION'

@chrmarti
Copy link
Contributor

Let's track the latest reports in #50 which specifically for the reported issue with 2.0.62 of the CLI.

I'll close this very old issue. If you see other problems with IntelliSense than the one in #50, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests