https://kotlinlang.org logo
Title
t

Travis Miehm

04/26/2023, 12:57 PM
I’ve updated my project to Kotlin 1.8.10 and pulled in detekt v1.23.0-RC1. Does the new version check in the runner need to be so restrictive, or would checking for a match on major and minor parts of the version be sufficient? Are there anticipated problems when detekt is compiled with 1.8.20 but running with 1.8.10, for example?
b

Brais Gabin

04/26/2023, 1:02 PM
There is not restrictions between those two
You can use whatever version you want and they should work.
t

Travis Miehm

04/26/2023, 1:05 PM
I get this error when running my detekt gradle task
detekt was compiled with Kotlin 1.8.20 but is currently running with 1.8.10.
This is not supported. See https://detekt.dev/docs/gettingstarted/gradle#dependencies for more information.
The documentation is not released so the link doesn't point to the right site
if you follow my link will find a rational about what's going on.
If you don't find that documentation usefull please open an issue so we can improve it. This is new for this version.
t

Travis Miehm

04/26/2023, 1:19 PM
Cool, I can give that work around a shot. Thanks for the link! I guess in general, I would expect versions that differ at the Patch level to be compatible with each other. But having never paid close attention to the compiler APIs, I don’t know if that’s true for
kotlin-compiler-embeddable
.
b

Brais Gabin

04/26/2023, 1:34 PM
Sadly it's not because it is not a public api yet.
t

Travis Miehm

04/26/2023, 1:39 PM
Sounds good. Thanks!