-
Notifications
You must be signed in to change notification settings - Fork 36
'pylint' extension gives false positive E1101:no-member #220
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
I'm also seeing this when using this new Pylint extension. Never had any issues with the old one, but now every time I add a function/method or change an existing one's signature, and try to use it in a different file, it reports E1101. Seems like there might be some caching issue. My current workaround is to reload VSCode, which sucks mucho... Edit: can actually just restart the pylint server instead of reloading VS Code |
Hi there, thanks for the bug report! I was able to reproduce the issue as well. We'll look into it as soon as we can. Because a lot of folks in the team are on vacation, in the meantime as a workaround it might be worth trying using our "built-in" support for linting: https://code.visualstudio.com/docs/python/linting#_enable-linting |
Getting the same thing - my best guess is that it's caused by #129. Should be fixed by the PR, but may result in way slower linting since the cache is invalidated. |
Type: Bug
I made two files in a clean repo:
wrapper.py:
consumer.py:
then hit ctrl + s (save) on both files. Then change consumer.py to:
and wrapper.py to:
Now I get a red underline message at the
my_f2
call:[{ "resource": "/c:/Users/jaclegg/src/demo/consumer.py", "owner": "_generated_diagnostic_collection_name_#5", "code": "E1101:no-member", "severity": 8, "message": "Module 'wrapper' has no 'my_f2' member; maybe 'my_f1'?", "source": "Pylint", "startLineNumber": 7, "startColumn": 5, "endLineNumber": 7, "endColumn": 18 }]
Running
python -m pylint consumer.py
finds no error, code runs fine. Also tried uninstalling the new pylint extension so that the python extension itself runs pylint and this works fine too (i.e. no E1101 is reported).Extension version: 2022.6.0
VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.22623
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: