-
Notifications
You must be signed in to change notification settings - Fork 460
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
spotless error in a multi project using includeFlat in settings.gradle #121
Comments
@regrog Thanks for the example project. I was able to reproduce this stack trace on my machine. I admit that it was my fault that it throws a @nedtwigg It seems to me that a particular Do you have any further insight as to what may be causing |
@regrog Spotless is (currently) not supporting flat hierarchies in combination with wildcard file selection
This is an internal spotless exception. @jbduncan Have to debug to see why then a As a work-around you could configure something like: @regrog Is this work-around OK for you at the moment? E.g. I think that the underlying code which causes the exception should be changed (I think it's a bug and not a feature 😉 ), but at least I have not time to do it now. Last word on this issue has anyway @nedtwigg . |
@fvgh you work-around works perfectly. Thanks |
@regrog Good to hear that you can continue with your work. We will address the issue soon. Thanks again for your report. |
As far I understand it, the IllegalArgumentException gets eaten by the surrounding Action. Well I just walked the code a bit. Maybe you want to have another look. Anyhow, there is definitely a problem in the exception handling which allows the creation of corrupted formatter steps. I think that problem is more severe than the flat hierarchy support. |
I submitted PR #122 which fixes the flat wildcard issue. I agree that the deeper problem is the corrupted formatter steps, but I that's actually a gradle problem, gradle/gradle#874. Looks like they don't see it as a bug at the moment, I'll chime in. They may well have a good reason for the current behavior which isn't immediately obvious. |
Once this CI job completes, this will be fixed in 3.5.0-SNAPSHOT. |
Released in 3.4.1. |
I'm changing my project to use flat dependencies but I'm facing this error.
Gradle 3.5
java 8
spotless 3.4
here an example, projectA is the root project and if you try to build it, you get an error:
spotlessErrorExample.zip
Thanks for the help
The text was updated successfully, but these errors were encountered: