Skip to content
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

Preserve file order of messages during successive daemon runs #13780

Merged
merged 2 commits into from
Sep 30, 2022

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Sep 30, 2022

This fixes an annoyance where the messages got reshuffled between daemon runs.

Also if there are messages from files that didn't generate messages during the previous run, move them towards the end to make them more visible.

The implementation is a bit messy since we only have a list of formatted lines where it's most natural to sort the messages, but individual messages can be split across multiple lines.

Fix #13141.

This fixes an annoyance where the messages got reshuffled between
daemon runs.

Also if there are messages from files that didn't generate messages
during the previous run, move them towards the end to make them
more visible.

Fix #13141.
@github-actions

This comment has been minimized.

msg2,
msg1,
msg3,
]
Copy link
Member

Choose a reason for hiding this comment

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

Add a test where there are more files in the new errors (unless I missed it)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added a test case and fixed an issue related to this.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JukkaL JukkaL merged commit efdda88 into master Sep 30, 2022
@JukkaL JukkaL deleted the daemon-message-order branch September 30, 2022 14:26
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.

Use consistent order for messages from mypy daemon
2 participants