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
Incompatibility with Kotlin 1.8.0 #5644
Comments
I confirm
|
This seems a dupe of #5021 could you read that issue and check if that's your case? The TL;DR of that issues is that you are changing the configuration of detekt in some way. |
@BraisGabin my repository didn't use any override |
I agree. In the build scan it shows: This shows that the expected Kotlin dependency (1.7.21) is being overridden in the
|
😕 but the expectation for the As we have declared the kotlin version to |
detekt is tightly coupled to a specific Kotlin version, so in some cases it's normal and expected that detekt will use a different Kotlin version to the project itself, if the project has upgraded to a higher Kotlin version, or is using an older one. We can't avoid this. detekt will still work though, as long as the project isn't using code that can't be analysed by the Kotlin version that detekt is using. |
@3flex noted, yes understand that part, that why I raise this issue with expectation if we can enhance the |
That will be done, there's a PR already open: #5614 |
It seems all clear. Can we close this? |
Yes, can. will follow up #5614 |
Expected Behavior
Detekt should be able to run as normal
Observed Behavior
Detekt throw this error
java.lang.NoSuchMethodError: 'org.jetbrains.kotlin.psi.KtExpression org.jetbrains.kotlin.resolve.calls.util.CallUtilKt.getCalleeExpressionIfAny(org.jetbrains.kotlin.psi.KtElement)'
Here are the details:
Steps to Reproduce
./gradlew build
Context
Blocking our team to use the latest kotlin 1.8.x
Your Environment
--scan
option when running the gradle task): https://gradle.com/s/bbbcdepqgqyleThe text was updated successfully, but these errors were encountered: