-
Notifications
You must be signed in to change notification settings - Fork 1.2k
No autocomplete/intellisense for new variables created in async functions #140
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
Comments
Closing as fixed. 😄 |
@brettcannon Definitely the latest; |
Did you try re-installing the extension? |
Yes, I just tried it again, uninstalled, restarted VSCode, brought it back and installed 2018.3.1 -- same issue. |
@Nessphoro do you have Jedi separately installed or specified in your |
@brettcannon Nope, settings.json is pretty empty {
"python.pythonPath": "/Users/pmalynin/miniconda3/envs/winkel/bin/python"
} |
But is Jedi installed in your environment or conda install? (I know this seems a little silly, but since you currently seem to be the only person on the planet with this issue I'm going on the assumption it's a configuration issue or installation issue. We're also looking to update our copy of Jedi in #1418 which might solve this for you if for some reason it is on our side.) |
@brettcannon I understand; Jedi has not been installed.
Also, I just created a completely new environment in conda:
And settings.json {
"python.pythonPath": "/Users/pmalynin/miniconda3/envs/cleanenv/bin/python"
} |
I'm finally able to reproduce after our Jedi 0.12.0 upgrade. var1 = 42
async def foo():
var2 = False
var # Only lists var1. |
I have reported this upstream to Jedi. |
It looks like this has been fixed upstream, but you'll need to update your installation of |
Closing as this is an upstream issue which we don't have direct control or influence over. |
From @applearound on July 14, 2017 21:18
Environment data
VS Code version: 1.14.1
Python Extension version: 0.6.7
Python Version: 3.6.1
OS and version: Windows 10 Professional 1703
Actual behavior
Define an async function.
Define some variables in the function.
Try to use them below but no autocomplete for them.
And the variables outside the function work fine.
Like:

Logs
VS Code doesn't show any error logs.
Copied from original issue: DonJayamanne/pythonVSCode#1084
The text was updated successfully, but these errors were encountered: