Running into issues when running `detektMain` on a project that has Gradle precompiled script plugin...
e
Running into issues when running
detektMain
on a project that has Gradle precompiled script plugins:
Copy code
Front-end Internal error: Failed to analyze declaration Co_myapp_kotlin_multiplatform_gradle
  File being compiled: (1,71) in //home/eli/workspace/myapp/src/main/kotlin/co.myapp-kotlin-multiplatform.gradle.kts
  The root cause org.jetbrains.kotlin.resolve.lazy.NoDescriptorForDeclarationException was thrown at: org.jetbrains.kotlin.resolve.lazy.BasicAbsentDescriptorHandler.diagnoseDescriptorNotFound(AbsentDescriptorHandler.kt:18)
Is this a known issue, or should I file something in GitHub?
b
It seems that you are changing the compiler version that detekt is using.
e
How can I check that? If that's the case I'm not doing it intentionally
b
I feel that your issue is related with this one: https://github.com/detekt/detekt/issues/5451
Does it help?
e
Usually yes I do override the Kotlin version in configurations 😅 But in this project I happen to not do that
From the dependencies and dependencyInsight task it looks like everything is using Kotlin 1.7.20 I'll file an issue with a repro project shortly