-
Notifications
You must be signed in to change notification settings - Fork 166
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
Build output doesn't contain hint to the source file containing the error. #476
Comments
Could you run with |
Sure, the stacktrace is
|
Indeed there was some internal refactoring that moved actual report producing and failing the build to the separate task. And yes, worker on |
A failure occurred while executing org.jlleitschuh.gradle.ktlint.worker.KtLintWorkAction
I'm still getting this issue |
I have noticed, that the build output is a lot less verbose since I have updated the plugin from
9.4.1
to10.0.0
.In one instance, previously we got an error like:
Since 10.0.0, this has changed to:
It contains the reason (Expecting a parameter declaration) but not the source file. I had a quick look into the plugin codebase and it could be, that this change is cause by this line:
https://github.com/JLLeitschuh/ktlint-gradle/blame/master/plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/worker/KtLintWorkAction.kt#L52 (there the
SerializableLintError
-wrapping of thelintError
was removed. Was this intentional?Any help is highly appreciated. 🙏 🙂
Note: I already have tried to enable debug-logging, which gave me a lot of more output but not the information, that I was looking for.
The text was updated successfully, but these errors were encountered: