-
Notifications
You must be signed in to change notification settings - Fork 461
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
Error from spotless after running a clean before ktlint linting #159
Comments
I think I found it. Resolving dependencies and creating the classloaders that run the formatters is pretty slow, so we cache them in We added The worst bug here is that it should be impossible for The easy-to-fix bug here is that all of the SpotlessTasks ought to have a The workaround for now is don't call |
Hmm, I do not yet see what race condition you're referring to. Would you kindly clarify things for me? :) |
I didn't see a way to make this failure louder than it already is. |
Okay, I understand now. Thanks for the explanation. :) I don't see a way of making this sort of failure louder either, so I'm happy with your diagnosis. |
clean now runs after all SpotlessTask. Fixes #159.
This is now available in |
I'm in CA for Kotlin Conf and visiting friends (vacation). I'll let you know when I get back on Thursday. |
Is there a sane way for me to checkout this change and try it given it's not available through the portal? More specifically, what repo should I use? I'd love to just the build in with the composite build feature but that may not work given how old the version of gradle spotless is built with. |
Use |
The fix has been published in 3.7.0. Can you confirm that it is fixed, and if it is, close this issue @JLLeitschuh ? |
Will do! |
This seems to have completely resolved the issue! Nice! Thanks! |
Running a
./gradlew clean spotlessCheck
or./gradlew clean spotlessApply
sometimes results in an error like this:I opened this issue with ktlint to which I got the response:
I'm not sure why this happens only immediately after running a
clean
.Version Info
Spotless Version:
3.5.1
Ktlint Version:
0.9.2
The text was updated successfully, but these errors were encountered: