Closed HenriqueAJNB closed 4 years ago
Since you provided an example where it works with Jedi, this is most likely an issue with the VS Code Python Extension.
So I'm going to close. You should probably open an issue there.
BTW: I saw the stackoverflow post, but I wasn't able to help.
I'm trying to figure out why does the autocomplete for
cv2
package is not working properly. Below some information about issue and versions that I'm using and my attempts to solve it:Autocomplete in VS Code
Versions information
All 3 packages above are installed at
C:\...\anaconda3\lib\site-packages
My attempts
I've checked whether my packages are installed in default location, suggested by this question with no success. They are installed at default location and still not working.
The command line
print(jedi.Script("import cv2\ncv2.").completions())
brings me the auto-completion correctly when I execute it in PowerShell, as recommended in this issue, but still not working in VS Code. Result are below:PS: I've limited the output because questions have a limitation regarding number of characters, can't bring them all.
numpy
package to the newest one (1.19) and also tried to use an older version (1.10). No success.If anyone could give me a hint, I'll be glad, even to point where the issue really is.
The output should be all the attributes and methods from
cv2
.And one last information: numpy autocomplete works normally.