Skip to content

Invalidate metadata if errors were previously ignored #3793

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

Conversation

mhahnenberg
Copy link
Contributor

Using --incremental with --follow-imports=silent triggered a bug where a
file was not typechecked due to the presence of a metadata file
and accompanying AST from a previous run and would therefore not print any
errors. This diff fixes the issue by recording whether errors were
silenced in the metadata file when it was created and ignoring these files if
errors are no longer silenced.

Fixes #3639

Using --incremental with --follow-imports=silent triggered a bug where a
file was not typechecked due to the presence of a metadata file
and accompanying AST from a previous run and would therefore not print any
errors. This diff fixes the issue by recording whether errors were
silenced in the metadata file when it was created and ignoring these files if
errors are no longer silenced.
@gvanrossum
Copy link
Member

Sorry, it's vacation season and there are few people around to review this. We'll get to it.

@gvanrossum gvanrossum self-assigned this Aug 22, 2017
@gvanrossum
Copy link
Member

LG, waiting for the tests to pass after the resolve.

@gvanrossum gvanrossum merged commit 64d5b96 into python:master Aug 22, 2017
@gvanrossum
Copy link
Member

Thanks! This addresses a nasty obscure corner case.

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.

--incremental --follow-imports=silent run separately on different files does not produce errors
2 participants