-
Notifications
You must be signed in to change notification settings - Fork 12
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
Failure with pylint-2.15.0: pylint_plugin_utils.NoSuchChecker: <class 'pylint.checkers.typecheck.TypeChecker'> #27
Comments
@DanielNoord @Pierre-Sassoulas do you happen to know what in 2.15 caused this? You might get some pylint-django bugs on the main pylint tracker from this, point them here if so. @atodorov I'll also try to find time too over the weekend, it's probably a deprecation I never got around to removing. |
We did not move the So the reason of the crash is not straightforward, it seems like a bug. But this ring a bell. Maybe something to do with plugin discoverability, the order of option and using load-plugin both in pylintrc and CLI options (as not yet documented in pylint-dev/pylint#7276 ?). Does the following would help ?
|
I can confirm this. We see the same issue in our pipeline, but I cannot reproduce it locally. I'm still figuring out what the slight differences between the CI environment and my laptop are but it's not only the versions mentioned in the initial post. |
For me it's the same CI environment, same test job, only versions are different. Updated original comment with URL to passing job if you want to compare logs (before I applied a workaround). |
I also can't seem to reproduce this locally with: git checkout https://github.com/kiwitcms/trackers-integration.git
cd trackers-integration
virtualenv venv python3.8
pip install -r devel.txt
git clone --depth 1 https://github.com/kiwitcms/Kiwi.git "../Kiwi/"
pip install -r ../Kiwi/requirements/devel.txt
pip install pylint==2.15
make check I'm getting one |
I also couldn't reproduce it with python I looked at the |
Update: That probably disabled the plugin |
I also was not able to reproduce locally. I am still fairly busy this week but is there any more information I can provide to figure out why the CI environment is different? |
I can drop a hint that it seems to hinge on astroid. |
git bisect says this was caused by pylint-dev/astroid@5067f08 (PR: pylint-dev/astroid#1536) It has been fixed in commit pylint-dev/astroid@8852ecd (PR: pylint-dev/astroid#1759) released with astroid 2.12.5 yesterday (2022-08-29). I've verified the fix with 2 of our repositories that failed with astroid 2.12.4. |
Thanks a lot for the double bisection @michael-k, very helpful ! Reinstalling pylint from scratch or upgrading astroid manually should fix the issue then. |
Can any of the original reporters confirm that this has indeed been fixed? I would be somewhat surprised as the original stracktrace seems to point to |
astroid-2.12.5, Seems to work for me, see https://github.com/kiwitcms/trackers-integration/runs/8094609902?check_suite_focus=true. The reported FAIL in the CI job above is pylint reporting errors on the code under inspection but it doesn't crash like in the original comment. From my POV this is now fixed. |
Ok so it looks like there's an incompatibility with exactly astroid I think this is just stale pip caches in CI to be honest; especially as nobody could reproduce it locally with a fresh venv. Doesn't seem like a problem which can be fixed in this repo so I'll close this. |
Thanks for all the input and work everyone :-) especially the git bisect work to find the cause! |
https://github.com/kiwitcms/trackers-integration/runs/8037795176?check_suite_focus=true
Previous PASSING execution in my CI, https://github.com/kiwitcms/trackers-integration/runs/7983170188?check_suite_focus=true, was with
@carlio I'm not sure if I will be able to take a look at this over the weekend. I will try.
The text was updated successfully, but these errors were encountered: