-
Notifications
You must be signed in to change notification settings - Fork 460
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
ClassCastException thrown by combination of ktlint and Dokka #1060
Comments
Interesting, thanks for the great repro! This code was meant to insulate us from problems like that: spotless/lib/src/main/java/com/diffplug/spotless/kotlin/KtLintStep.java Lines 107 to 109 in b3a6e36
I wonder if your example works if we revert to before #1012, in which case Either way, the fix is probably going to involve this code:
Happy to help anyone who wants to dig further, but I'm a |
closing as stale, feel free to reopen with |
summary of problem
ClassCastException is thrown by combination of ktlint and Dokka.
The exception message is as follows:
gradle or maven version
Gradle 7.3.3
spotless version
6.1.0
operating system and version
Mac OS X 10.16 x86_64
copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the problem if possible
The following repo reproduces the problem:
https://github.com/nakamura-to/ktlint-dokka-issue
A workaround is in the same repo under the
workaround
branch.copy-paste the full content of any console errors emitted by
gradlew spotless[Apply/Check] --stacktrace
stacktrace
The text was updated successfully, but these errors were encountered: