-
Notifications
You must be signed in to change notification settings - Fork 456
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
Regression between 2.34.0 and 2.35.0 #1653
Comments
@stawirej Can you provide a reproduction scenario ? Thanks |
|
Hi @stawirej, I think #1621 might be causing the problem. I followed the described steps but both Could you please paste the output of the following commands: $ cat target/spotless-index
$ stat src/main/java/pl/amazingcode/timeflow/Time.java File To work around this problem it should be enough to run |
Hi @lutovich, thank you for your feedback. Neither cat target/spotless-index
cat: target/spotless-index: No such file or directory I am facing reported issue not only on this project, but in multiple, production projects. Please check some obfuscated logs from big production-level project: stat ../SomeClass.java
16777229 21656051 -rw-r--r-- 1 user staff 0 7320 "Apr 14 11:14:56 2023" "Apr 14 11:14:54 2023" "Apr 14 11:14:54 2023" "Apr 14 11:13:11 2023" 4096 16 0 ..SomeClass.java
cat ./target/SomeClass.java
/SomeClass.java 2023-04-14T09:14:54.953613084Z After cat ./target/SomeClass.java
../SomeClass.java 2023-04-14T09:14:54.953613084Z
stat ../SomeClass.java
16777229 21656051 -rw-r--r-- 1 user staff 0 7320 "Apr 14 11:14:56 2023" "Apr 14 11:14:54 2023" "Apr 14 11:14:54 2023" "Apr 14 11:13:11 2023" 4096 16 0 ../SomeClass.java Issue still present. |
@stawirej The fix is at the end Reproduction additional notes:
Mmm. This makes me think of #1656 (do not ask me why). Current (faulty) configuration:
-> you @stawirej This is fixed by a configuration like:
|
I think it is because up-to-date checking was enabled by default starting in Seems that up-to-date checking makes it more important that the format targets are non-overlapping. Closing as dupe of #1656. |
Thank you for your support. |
If you are submitting a bug, please include the following:
After upgrading to 2.35.0 from 2.34.0 spotless-maven-plugin, spotless stopped to report format violation (always success on mvn spotless:check) and stopped reformatting code (always success on mvn spotless:apply).
Spotless used with google java format 1.16.0
The text was updated successfully, but these errors were encountered: