Ned Twigg
Ned Twigg
Here's an example (of rewrite, not error-prone) - 17 hrs ago #2758 gets opened. - 12 hrs ago I notice it exists. It's blocked on me because I need to...
> simple setup (just JDK 11) Starting with the 3.0.0 version of spotless-maven, we do not support 11, and we require 17. That was why we bumped the major version....
- best fix here is #1996
This is the correct behavior if you are using `ratchetFrom`. I don't see it in your example above, any chance it's hiding in some other file?
Amazing, thanks for the reproducer! Good chance we'll learn something important from it. Just occurred to me that a possible workaround would be using a non-git-aware line ending: https://github.com/diffplug/spotless/tree/main/plugin-gradle#line-endings-and-encodings-invisible-stuff
Maybe try killing the daemon (`./gradlew --stop`) or wiping the local configuration cache (`rm -rf .gradle/configuration-cache`) since it's working in CI.
I just saw this for the first time. This fixed it: - `./gradlew --stop` - `rm -rf .gradle` Obviously, it sucks that this happens at all. I have used it...
Let me know if you see this again in `7.0.0.BETA3`, which is now merged into `main`.
Thanks for reporting! I'll pull your PR and see what's going on...
Weird, I pulled, ran `spotlessApply`, no problems. I'm on mac, maybe it's a windows thing?