-
Notifications
You must be signed in to change notification settings - Fork 750
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
Output "Changes were written" only if changes were written, and just once #1562
Comments
I am trying out patching with ErrorProne for the first time using the Using |
Filtering out no-op refactoring operations avoids unnecessary build output and file I/O. Fixes google#1562.
I filed #3236, which should improve the situation. (It doesn't resolve the duplicate |
@Stephan202 That's amazing, thanks for the quick fix! |
Description of the problem / feature request:
Please make Error Prone output its "Changes were written to ..." message only if changes were written, and at most once.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Here is how to reproduce the problem.
Setup:
This command creates patches for problems in the two files:
A problem is that it outputs the same message twice, which is unnecessary and verbose:
This command tries to create patches, for a problem that is not present in the two files:
However, it still outputs the message (twice), even though the file was never created:
What version of Error Prone are you using?
2.3.4
Have you found anything relevant by searching the web?
Searched both, found nothing.
The text was updated successfully, but these errors were encountered: