-
Notifications
You must be signed in to change notification settings - Fork 6
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
Unable to format document #218
Comments
Hello, I experience the same problem with a basic config. spotless {
java {
googleJavaFormat()
}
} |
In my case it was because my projects have modules. I added target: spotless {
java {
googleJavaFormat()
target 'src/*/java/**/*.java', 'modules/**/src/*/java/**/*.java'
}
} It solves my problem. |
@CodingKoopa are you able to provide a repository/example project that demonstrates this issue? |
Going back in time, I added the spotless config in this commit, so the tree at that point is about as minimal as an example as I have. The Gradle file there is basically the same as the one in the OP. I hadn't tested whether this can be triggered with a simpler config as @pierrickrouxel, and I don't really intend on going back to these projects to try it again. What's more is that my teammates who have taken over the project do report great success with this extension. If the issue is not easily reproduced by you, I wouldn't mind this being closed. |
I have also issues with this. As soon as I add the |
I have a Gradle project that I would like to format using this extension. This is my
build.gradle
, with thespotless
configuration at the end of the file.When I run
gradle spotlessApply
outside of VSCode, Gradle is successful, and issues in the files are fixed.When I run the
spotlessApply
task using the Gradle Tasks extension, it is successful and works.When I format the document, though, the issues are not fixed. I get this notification in VSCode:
The following is logged to the Gradle Tasks output:
The following is logged to the Spotless Gradle output:
Some other notes:
OS: Arch Linux
Gradle Version: 6.0.1
Gradle Tasks Version: 3.5.2
Spotless Gradle Version: 1.1.3
The text was updated successfully, but these errors were encountered: