Skip to content
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

org.jetbrains.kotlin.idea.KotlinFileType error #495

Open
ljcmeng opened this issue Oct 25, 2023 · 1 comment
Open

org.jetbrains.kotlin.idea.KotlinFileType error #495

ljcmeng opened this issue Oct 25, 2023 · 1 comment

Comments

@ljcmeng
Copy link

ljcmeng commented Oct 25, 2023

I am doing secondary development of detekt-intellij-plugin. When I use the two libraries detekt and android-lint, there are some kotlin-related class conflicts. The kotlin method in android lint cannot be loaded. Android lint can run normally only when kotlin-compiler-embeddable is excluded. But at this time, the kotlin method in detekt starts to be error. I guess this is because detekt uses kotlin-compiler-embeddable instead of kotlin-compiler. But I don’t know how should it be solved.

Here is my dependency in build.gradle

dependencies {

    implementation("io.gitlab.arturbosch.detekt:detekt-api:1.23.1") {
//        exclude("org.jetbrains.kotlin", "kotlin-compiler-embeddable")
    }
    implementation("io.gitlab.arturbosch.detekt:detekt-tooling:1.23.1") {
//        exclude("org.jetbrains.kotlin", "kotlin-compiler-embeddable")

    }

    runtimeOnly("io.gitlab.arturbosch.detekt:detekt-core:1.23.1")
    runtimeOnly("io.gitlab.arturbosch.detekt:detekt-rules:1.23.1")
    runtimeOnly("io.gitlab.arturbosch.detekt:detekt-formatting:1.23.1")


    implementation("com.android.tools.lint:lint:30.2.0") {
        exclude("com.android.tools.external.com-intellij", "intellij-core")
        exclude("com.android.tools.external.com-intellij", "kotlin-compiler")
        exclude("com.android.tools.external.org-jetbrains", "uast")
    }

}
@arturbosch
Copy link
Member

Could you try out if this branch fixes the plugin imcompatibiity? #496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants