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

Autocomplete only works after re-selecting python interpreter #2889

Closed
cgebbe opened this issue Jun 5, 2022 · 1 comment
Closed

Autocomplete only works after re-selecting python interpreter #2889

cgebbe opened this issue Jun 5, 2022 · 1 comment
Labels
waiting for user response Requires more information from user

Comments

@cgebbe
Copy link

cgebbe commented Jun 5, 2022

Environment data

  • Language Server version: v2022.6.0
  • OS and version: Ubuntu 20.04
  • Python version (& distribution if applicable, e.g. Anaconda): virtual environment, python 3.8.10

Code Snippet

import boto3
s3_client = boto3.client("s3")
response = s3_client.list_objects_v2(Bucket="my-bucket")

Repro Steps

python -m venv venv
source ven/bin/activate
pip install boto3

# open vscode

pip install boto3-stubs

Expected behavior

After installing boto3-stubs, autocomplete works (after a few seconds)

Actual behavior

After installing boto3-stubs, autocomplete does NOT work. One workaround that works is re-selecting the python interpreter via "Python: Select Interpreter".

Note

I use boto3 and boto3-stubs as an example here, but have experienced the same behavior with any other library (e.g. numpy, tqdm, ...)

@github-actions github-actions bot added the triage label Jun 5, 2022
@judej
Copy link
Contributor

judej commented Jun 6, 2022

Thanks for the report. This is an issue that we are working on and will have a resolution. In the meantime, the workaround is to manually restart the Language server - either by selecting the interpreter as you have or by reloading the window - from the command palette.

Thanks

@judej judej added the waiting for user response Requires more information from user label Jun 6, 2022
@github-actions github-actions bot removed the triage label Jun 6, 2022
@judej judej closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for user response Requires more information from user
Projects
None yet
Development

No branches or pull requests

2 participants