ktlint doesn't work after update Kotlin to 1.3.30

See original GitHub issue

After 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:closed
  • Created 4 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
nzakharchenkocommented, Apr 12, 2019

We have exactly the same issue 😦

2reactions
romtsncommented, Apr 16, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found