ktlint doesn't work after update Kotlin to 1.3.30
See original GitHub issueAfter upgrade to Kotlin 1.3.30 ktlint doesnāt work and crash with exception
Exception in thread "main" java.lang.NoSuchFieldError: PROPERTY_DELEGATE
at com.github.shyiko.ktlint.core.ast.ElementType.<clinit>(ElementType.kt:33)
at com.github.shyiko.ktlint.ruleset.standard.ChainWrappingRule.<init>(ChainWrappingRule.kt:36)
at com.github.shyiko.ktlint.ruleset.standard.StandardRuleSetProvider.get(StandardRuleSetProvider.kt:12)
at com.github.shyiko.ktlint.Main.main(Main.kt:310)
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (12 by maintainers)
Top Results From Across the Web
android - Problems running ktlint from module - Stack Overflow
So, this is how i resolved my problem and run ktlint. First I was update my root build.gradle : // Top-level build file...
Read more >Changelog and Migration Guide - Detekt
We update a lot of the libraries we depend on bringing Detekt up to the ecosystem: KtLint 0.45.2, Kotlin 1.6.20 and Gradle 7.4.2...
Read more >11.0.0 - GitHub
"kotlin-platform-\*" - Updated Android Gradle Plugin to `4.1.0` version. ... Make pre-commit hook working with Windows path separatorĀ ...
Read more >Diff - platform/external/ktlint - Google Git
Merge commit '326cdc53aa67dc3e8d68eb24fcc08b3e4a7b9bde' Update to ktlint ... the break comes after the symbol; +- When class/function signature doesn't fitĀ ...
Read more >Ktlint - Kotlinlang
Kotlin 1 7 10 id org jlleitschuh gradle ktl⦠U02R8E8EMGR U2YJBAX1R any ideas⦠Is continuation indent size ever going to b⦠I do...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We have exactly the same issue š¦
@shashachu Thanks for the answer! Looking at this, I assume it just got resolved by re-compiling with the newer kotlin version, since the public type has changed. Also afaik when you do
mvn clean verify, it also runs ktlint over itself, so the build on the PR wouldāve failed, if this was an issue.