Skip to content

Fix reporting of likely hangs in the new semantic analyzer #6872

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

Merged
merged 1 commit into from
May 21, 2019

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented May 21, 2019

Previously things like class A(A): pass resulted in a crash
instead of an error message. Now we generate an error message
with some context (but still not enough).

Partially addresses #6495.

Previously things like `class A(A): pass` resulted in a crash
instead of an error message. Now we generate an error message
with some context (but still not enough).

Partially addresses #6495.
@JukkaL JukkaL requested a review from ilevkivskyi May 21, 2019 13:15
Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LG! Should we do the same also for report_hang() in process_top_level_function() below?

@JukkaL
Copy link
Collaborator Author

JukkaL commented May 21, 2019

Should we do the same also for report_hang() in process_top_level_function() below?

Probably yes? I'll create another PR to fix that.

@JukkaL JukkaL merged commit 52e41f8 into master May 21, 2019
JukkaL added a commit that referenced this pull request May 21, 2019
Fix another crash related to hitting max iteration count in
the new semantic analyzer.
JukkaL added a commit that referenced this pull request May 21, 2019
Fix another crash related to hitting max iteration count in
the new semantic analyzer.
@JelleZijlstra JelleZijlstra deleted the fix-report-hang branch May 22, 2019 02:35
PattenR pushed a commit to PattenR/mypy that referenced this pull request Jun 23, 2019
Previously things like `class A(A): pass` resulted in a crash
instead of an error message. Now we generate an error message
with some context (but still not enough).

Partially addresses python#6495.
PattenR pushed a commit to PattenR/mypy that referenced this pull request Jun 23, 2019
Fix another crash related to hitting max iteration count in
the new semantic analyzer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants