Thanks thats a start. Im trying to look at it from a backwards compatibility perspective. Like: what's the oldest version of kotlin i can use ktlint 1.0 on?
p
Paul Dingemans
12/09/2024, 4:56 PM
I don't know. It will work with kotlin
1.9
for sure as that version of the embedded compiler which is included in ktlint
1.0
. But if the project on which ktlint is run does not use any new language elements which have been introduced in
1.9
, nor have been removed from that version, than it is very likely that it (e.g. the ktlint CLI) will run with
1.8
or older as well. For an API consumer the same hold probably true as long the embedded kotlin compiler in ktlint does not conflict with the kotlin compiler used by the API consumer. I really cannot predict that.
Are you facing issues? I know that kotlinter has some issues (see https://github.com/pinterest/ktlint/issues/2882).
w
wakingrufus
12/13/2024, 2:51 PM
No not that. We are considering dropping support for ktkint 0.x in ktlint-gradle but just trying to figure out if we would lose support for any kotlin versions
p
Paul Dingemans
12/13/2024, 3:49 PM
Ok, I see. Without any statistics its is much hard to make such decisions. But sometimes you just have to move on.