-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
ERROR: Unrecoverable exception thrown when parsing ./help_text_gen.py! This should NEVER happen. If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new #1593
ERROR: Unrecoverable exception thrown when parsing ./help_text_gen.py! This should NEVER happen. If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new #1593
Comments
Hi @ThatXliner, Thank for for forwarding along this error! At first glance, I can see how this error could possibly occur, however I trust that it is, and you are not the only one who has encountered it: Running isort myself I do not get this error against the provided file. Could you provide some additional information:
|
misc:
OS: MacOS 10.15.7 |
Funny:
Is this a python issue?
|
Yep that's it! isort runs against every supported minor release, including 3.6.x, but the latest version of each. It seems to break on 3.6.0 but not 3.6.12 so the automated tests never uncovered it, I imagine it has to do with the decorators on the method in question, but I'll investigate some more. |
Thank you for reporting! After investigation I was able to confirm this issue is a reflection of a bug in early patch release of Python3.6 (the latest 3.6.12 does not have the error) with staticmethods on a NamedTuple class. This is fixed in develop and will be released with the next minor release of isort. Thanks! ~Timothy |
My code:
The text was updated successfully, but these errors were encountered: