-
-
Notifications
You must be signed in to change notification settings - Fork 580
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 src/pyramid/predicates.py! This should NEVER happen. #1505
Comments
Thanks for reporting! I'm sorry this issue affected the Pyramid project, but I'm happy to see the message helped direct the error back to the right place :) Not sure what's going on here yet, but either way fixing it is a priority. Thanks! ~Timothy |
Thanks for the quick response. I'm happy to do whatever I can to help resolve the issue. Please let me know. |
@stevepiercy https://github.com/Pylons/pyramid/blame/6116c6c8be01909724127b055be633c53c4782fc/pyproject.toml#L34 I can see here that no standard library section is listed, is the intention for all stdlib imports and other thirdparty imports to end up in the same section? |
@timothycrosley according to this PR by @mmerickel:
|
@stevepiercy Thanks for the information! I was able to verify that was the behaviour of isort against the config prior to the last minor release. Work done to improve error messaging for
This will make its way to the development branch in a short time. Would it be helpful for the Pyramid project for me to push out the change as a hot fix to 5.5.x minor release, or is the next planned minor release planned for October 1st soon enough for me to push it within the 5.6.0 release? Thanks! ~Timothy |
If you are okay waiting but need a solution for the immediate commit, index 36187ef..0dfea71 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -34,3 +34,4 @@ no_lines_before = "THIRDPARTY"
sections = "FUTURE,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
default_section = "THIRDPARTY"
known_first_party = "pyramid"
+known_standard_library = [" "] Setting the known standard library to "empty" also fixes this issue in a backward and forward compatible way. |
Thanks for the quick fix! We can wait for the 5.6.0 release on Oct 1. I've notified the team of the issue. |
Thank you @timothycrosley ! |
Happy I could help! Another, relatively urgent, issue came in so I ended up pushing out a 5.5.4 hot fix release that includes the fix for this issue. Thanks! ~Timothy |
Thank you! I tried it out, and I verify that it has been fixed. |
Thanks again @timothycrosley (piling on the appreciation :D) |
The log from our GitHub action says to file an issue, so here it is!
https://github.com/Pylons/pyramid/runs/1180227019#step:5:11
isort==5.5.3
This issue does not occur with isort 5.4.2.
Relevant bits:
Please let me know what I can do to help troubleshoot this error. Thank you!
The text was updated successfully, but these errors were encountered: