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

Intellisense not working with OpenCV after update #1339

Closed
Gensight opened this issue May 23, 2021 · 4 comments
Closed

Intellisense not working with OpenCV after update #1339

Gensight opened this issue May 23, 2021 · 4 comments
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@Gensight
Copy link

When trying to see Visual Studio Code intellisense autocomplete for OpenCV ex: import cv2 I get the word 'Any' after any functions

Example: Hovering over cv2.rectangle yields rectangle:Any in intellisense window.

Tried changing settings.json to include python.analysis.extraPaths but it did not work. Original setting was python.autoComplete.extraPaths but neither works.
This was working prior to v2021.5.842923320
When I disable Pylance extension in VS Code I do not get any intellisense window at all.
I really need Intellisense for my business coding so any help would be appreciated.

@Gensight
Copy link
Author

If I copy cv2.pyi to my working directory it works...

@karrtikr karrtikr transferred this issue from microsoft/vscode-python May 24, 2021
@judej judej added the needs investigation Could be an issue - needs investigation label May 24, 2021
@github-actions github-actions bot removed the triage label May 24, 2021
@judej
Copy link
Contributor

judej commented May 24, 2021

Possibly similar issue 912

@bschnurr
Copy link
Member

can enable tracing and upload "Python Language Server" logs from the "Output" window. more info here https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue

you shouldn't have to set paths.

after installing opencv you probably have to restart though.

@bschnurr bschnurr added the waiting for user response Requires more information from user label Jun 25, 2021
@jakebailey jakebailey added fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed waiting for user response Requires more information from user needs investigation Could be an issue - needs investigation labels Aug 18, 2021
@heejaechang
Copy link
Contributor

it should be fixed in 2021.8.2 released today (2021.8.19)

@heejaechang heejaechang removed the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Aug 19, 2021
@jakebailey jakebailey added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

5 participants