-
Notifications
You must be signed in to change notification settings - Fork 767
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 on this particular python code snippet #1890
Comments
It looks like the scipy stubs that we ship with pylance are missing the |
The stubs we ship are for the compiled code only, so this must be in a regular py file. |
This is potentially related to microsoft/pyright#2324. The code in scipy is unannotated, and it involves a lot of complex nested loops, so it can be very costly to analyze. |
So what would be to solution? And in the meantime the mitigation? |
I've added some heuristics to the type analyzer to skip function return type inference for complex functions like While you're waiting for this fix in next release of pylance (which is typically published on Wednesday), you can disable the |
Thanks a lot! |
I'm going to mark this one as fixed, as the main issue was the responsiveness. Getting the types right will take changes upstream or stubs to be written. |
This issue has been fixed in version 2021.10.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#2021100-6-october-2021 |
Issue Type: Bug
Intellisense for python is normally working for me without any issue. However, the following code makes it unresponsive. In particular, as soon as I open the file containing this code in VScode, the Intellisense stops working altogether until I restart VScode. I have not been able to find any error message corresponding to opening of this particular file. Can you spot the issue?
VS Code version: Code 1.60.2 (Universal) (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T11:59:27.195Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (7)
A/B Experiments
The text was updated successfully, but these errors were encountered: