-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No old counts in pylint report mode (version 2.4.4) #3819
Comments
@hamishmb thanks for the report. |
Oh good, I was wondering if it was to do with my setup somehow. Anything I can do to help debug? Any known working versions other than the old one? I guess I could set up a virtual environment and/or use pip to install some different versions. |
NB: Also occurs in 2.6.0 from PyPI |
Yes it could help if you could find what was the last version with the feature working as expected. Thanks. |
NB: Just tried clearing out $HOME/.pylint.d, but no difference. I'll try again but my initial attempt at getting old versions working with pylint resulted in errors related to Astroid. I'm on Python 3.8, do I need to use an older version to test? |
I always get this error trying older versions it seems: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Any ideas why? |
No matter, just figured it out. It was broken some time between pylint 2.3.1 and 2.4.0. |
@hamishmb How did you resolve the issue? |
I ended up just downgrading to pylint 2.3.1 with pip. I do eventually plan to bisect this if no one else does, but I unfortunately don't really have time to do that right now. |
@hamishmb i located the source of the bug. It is commit 293a7f5. |
It was a cleanup around removing a circular import in the utils package, but I don't remember the particular. It seems I made a mistake and the code was actually used somewhere even if untested. I'll check that. |
@Pierre-Sassoulas don't worry about this. I will make a PR that partially or totally revert this commit and we will see if it is ok! |
I was going to add functional tests for it, it's not mutually exclusive ;) |
Thanks for taking a look at it, and apologies I never got around to finding the commit that caused it. I'll happily test the fix for you when it's out. |
@hamishmb no problem for not finding the commit. Your investigation helped me a lot to find it! Thanks. |
Excellent thanks :) |
Question
Hi all,
Since my upgrade to Linux Mint 20, I've not had any old counts in my reports, and I'm not sure why. Multiple runs of pylint does show "NC" for old counts. The .pylintrc files have not changed.
Here is the output of "pylint --version":
My old pylint version on Linux Mint 19.3 was 1.8.3.
Has anyone else encountered this issue?
Attached is a simple python 3 file (with some deliberate mistakes so pylint can moan about them), and a .pylintrc file that demonstrates the issue for me.
pylintrc_testfiles.zip
The text was updated successfully, but these errors were encountered: