-
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
v2024.5.1: Resolving the import of non-"third party" modules #5861
Comments
might be dupe of #5836 but that said, it would be nice to have more detail repro steps |
@SDiWK, can you please provide repro steps with code, required packages (inc. versions), etc? |
@debonte, @heejaechang: (very simple setting: Hope this helps. Thanks and kind regards :-) |
@SDiWK github says I dont have access to the repository. |
@heejaechang Can't say why you ran into trouble accessing it. Sorry for the inconvenience. I just made the repository public. There doesn't seem to be a point in restricting access anyway, in this case. |
we are talking about this right? https://github.com/SDiWK/5861/tree/main it has only 2 files in it
there is only 1 import statement for me, it works fine. can you provide us some logs as described in the troubleshooting guide? I need to see your settings and env to find out why it didn't work for you. |
I think, before submitting the logs I should further elaborate a bit: In my use case I've had the impression that my class (here B) which incorporates a class A, say, doesn't have access to the methods/members of A, even though it should, at least I expected so, as A is imported. To be more precise about what "have access" means: I think I need to refine my reproduction setting, in order to pinpoint what I meant, and then recur with more detailed information as outlined by you. Many thanks for your time so far. |
if |
Type: Bug
Pylance v2024.5.1 appears to have a bug related to resolving the import of classes/modules which are not "third-party". In v2024.4.1 this issue doesn't occur: the same modules whose import could not be resolved using the newer version v2024.5.1 of Pylance, do not present a problem using the older version v2024.4.1.
Extension version: 2025.4.1
VS Code version: Code 1.89.0 (b58957e67ee1e712cebf466b995adf4c5307b2bd, 2024-05-01T02:09:22.859Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: