-
Notifications
You must be signed in to change notification settings - Fork 503
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
Running clean before ktlint task results in FileNotFoundException #97
Comments
Thank you for letting me know. Fixed in 0.11.1 (Maven Central sync might take up to half an hour). |
Thanks for the speedy fix! 🏎 |
Getting similar error. ./gradlew ktlint --stacktrace:
If I delete the unused import, build is successful. Project level build.gradle:
module build.gradle:
Same happens on ktlintFormat. Ubuntu 17.04, gradle 4.6, gradle plugin 3.1.2, kotlin 1.2.41 |
@deividasstr there is no FileNotFoundException in the stacktrace you've provided. It looks fine. |
I have similar error : gradlew ktlint
my project is android project
windows 10 1910, gradle 5.4.1, gradle plugin 3.5.3, kotlin 1.3.61 , Android Studio 3.5 |
@Hasiy If in your case it still fails when there are no style violation, please open new issue. |
I have a small Kotlin project containing style violations.
I have added the ktlint Gradle task according to the instructions in the README:
When I run
./gradlew ktlint --stacktrace
, I see the following output:This is expected, since ktlint appears to use a non-zero exit status to indicate that style violations are found. However, when I run
./gradlew clean ktlint --stacktrace
, I see the following output:The task still fails, but this time because of a
FileNotFoundException
. The file was successfully created and written to when I didn't callclean
beforektlint
. As far as I can tell this is a bug in ktlint?Gradle wrapper version: 4.2.1
The text was updated successfully, but these errors were encountered: