I keep getting "Outdated Kotlin Runtime" in Intell...
# announcements
l
I keep getting "Outdated Kotlin Runtime" in Intellij IDEA. How can I update the Runtime? (the "Update Runtime" link given by the IDE just tells me that updating the runtime is not yet supported)
g
Check the line where the version is configured in your build.gradle, you usually get a warning and when you hover on it, it’ll tell you what is the last available version
r
If you are sure that you've updated all your dependencies, run this in terminal:
Copy code
./gradlew :app:dependencies > deps.txt
(or whatever module you have instead of
app
) and then check the file for the dependency with obsolete version; walk up the tree -- you should see which dependency pulls outdated kotlin runtime.
I.e. I saw the following today:
Copy code
+--- io.ktor:ktor-websockets:0.9.1-alpha-8
|    +--- org.jetbrains.kotlin:kotlin-reflect:1.2.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.2.0 -> 1.2.20-eap-71 (*)
|    +--- org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.0 (*)
|    +--- org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0 (*)
|    +--- org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:0.20-alpha-12 (*)
So even though I've updated coroutines to 0.21.2, Ktor still pulls older 0.20-alpha-12 in, which is causing issues.
l
Not using gradle but maven
r
Well, maven probably has it's own way to dump dependency tree -- you should check it, if you are sure that you've updated your direct Kotlin dependencies.
l
yes, it is working now - but for some reason, the IDE doesn't show available versions for the Kotlin dependencies
(as opposed to other libraries, where the IDE would autocomplete with available versions in the available repositories)
r
Can't suggest anything, because I was updating my dependencies manually even before Kotlin anyway -- I like to keep versions in one place, so IDEA was never able to assist me đŸ™‚
l
well, yes, I have a bit of a problem with IDEA nowadays
basically, I'm close to useless without it
r
Well, it's always balance between convenience and own effort. I guess we're all on the dark side here in Kotlin Slack.