-
Notifications
You must be signed in to change notification settings - Fork 156
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
ktlintCheck task does not fail on Windows #399
Comments
Hi, thank you for the project to reproduce your issue. I've tried to do it on my machine with openjdk 14, but for me it always fails both locally and in docker image. Maybe there are some additional steps to reproduce? |
Thank you for the response. Just figured out that this is reproducible only on the Windows OS. May be you can try it on Windows OS? UPD: |
In case it helps, I am experiencing similar behavior where the source set check tasks are passing on my Windows laptop with plugin Downgrading to the previous version of the plugin I was using ( This is the project I'm using: https://github.com/craigatk/projektor Other versions:
I imagine not everyone has a Windows machine lying around to try to diagnose this :) I'll try out the plugin code locally on my Windows machine and see if I can find out what's happening. |
Hey there! Setup 1
Setup 2
Setup 3 @craigatk your example with plugin
For me it turns out I can not use Kotlin |
I could reproduce it on the windows machine using sample project. Looking into it 👀 |
Thanks, @Tapchicoma |
Hello Ktlint-Gradle team.
I'm facing the strange issue.
When I'm running the local ktlint check via
./gradlew clean ktlintCheck
the "mainSourceSetCheck" task completes successfully.But when I'm running the same process in
docker build
environment the result is different and it fails.I've found the same problem on StackOverflow:
https://stackoverflow.com/questions/63863368/ktlint-check-doesnt-work-locally-anymore-it-works-tho-in-my-docker-image-buil
Versions I'm using:
The
java --version
output in the local and docker environment is the same:Local environment check outputs the following message
[DEBUG] <...>ms / 0 file(s) / 0 error(s)
whereas the docker environment outputs the
[DEBUG] <...>ms / 1 file(s) / 1 error(s)
I've also made a minimum reproducible example. You may found it here:
https://github.com/santelos/ktlint-mre
build.gradle.kts
Dockerfile
The text was updated successfully, but these errors were encountered: