Closed tyralla closed 2 years ago
@Pierre-Sassoulas This is a release blocker imo.
Making a PR to fix this somewhere today!
Thanks for the report @tyralla! I have deployed a fix and we should release astroid
2.12.7
somewhere today.
One side note: we advise against upgrading astroid
manually. Although this time this was much appreciated as it helped prevent releasing pylint
with an avoidable crash, normally we bump astroid
within pylint
itself. There are instances where upgrading astroid
on its own without pylint
being ready for it can create issues. So, normally just pinning pylint
should give you the last up to date and compatible version of both packages.
(astroid get updated automatically in pylint when we release patch versions, but they usually don't break anything)
https://github.com/PyCQA/pylint/blob/3694f4fe58dd7b4d24befcc26794590c9880f731/pyproject.toml#L40
@Pierre-Sassoulas @DanielNoord
Hi! I am also having the same problem.
How can I download version 2.15.1
? I couldn't find it on the https://pypi.org/ site.
May I know when it will be available for download?
Thanks!
@ejolie: you must upgrade astroid (currently 2.12.8), then pylint 2.15.0 does not crash anymore.
@tyralla Thanks! It works!
How can I download version 2.15.1? I couldn't find it on the https://pypi.org/ site.
Thank you for the comment, it made me realize I failed at releasing. I released 2.16.0-dev
instead of 2.15.1 (https://pypi.org/project/pylint/2.16.0.dev0/). We're going to skip 2.15.1 and release 2.15.2 directly hopefully today.
Bug description
Since astroid 2.12.6, when parsing the following file:
pylint crashed with a
AstroidBuildingError
and with the following stacktrace:Command used
Pylint output
Expected behavior
No crash (and no useless-suppression and invalid-name false positives, but this is another issue)
Pylint version
OS / Environment
Windows (my computer) and Linux (Travis-CI)
Additional dependencies
sphinx 5.1.1 sphinxcontrib_bibtex 2.4.7