question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use ktlint 0.38.0-alpha01 (Kotlin 1.4 compatibility)

See original GitHub issue
buildscript {
    configurations.classpath.resolutionStrategy.dependencySubstitution.all {
        val requested = requested as? ModuleComponentSelector ?: return@all
        if (requested.group == "com.pinterest.ktlint") {
            useTarget("${requested.moduleIdentifier}:0.38.0-alpha01", "Kotlin 1.4 compatibility")
        }
    }
}
$ ./gradlew lintKotlin
Execution failed for task ':lintKotlin'.
> There was a failure while executing work items
   > A failure occurred while executing org.jmailen.gradle.kotlinter.tasks.lint.LintWorkerRunnable
      > kotlin.jvm.internal.FunctionReferenceImpl.<init>(ILjava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V

Kotlinter itself has compatibility problems with Kotlin 1.4?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jeremymailencommented, Aug 25, 2020

3.0.0 is now available with kotlin 1.4.0 support.

1reaction
henrik242commented, Aug 24, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Compatibility guide for Kotlin 1.4
Basic terms In this document we introduce several kinds of compatibility: source: source-incompatible change stops code that used to compile ...
Read more >
Ktlint
No configuration required ktlint aims to capture the official Kotlin coding conventions and Android Kotlin Style Guide. · Rule sets ·. · Disable...
Read more >
Upgrading Android kotlin version to 1.5.0 throwing error ...
It was my case, i did use external downloaded JDK. To change JDK go to File -> Settings -> Build, Execution, Deployment ->...
Read more >
Changelog and Migration Guide - Detekt
The Gradle plugin now requires at least Gradle 5.4. This aligns with Kotlin's Gradle plugin. The Gradle plugin now supports configuration avoidance; The...
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