Kotlin Coroutines version in CLion plugin
Answered
I am creating plugin for CLion and need kotlin coroutines.
The version that is bundled with intellij plugin is 1.2.1. Intellij still sees only this version when I add
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2")
to build.gradle.kts
How can I update the version?
Please sign in to leave a comment.
The version of kotlinx-coroutines is specified by the IDE's release. Why do you want to update it independently from the IDE?
Version 1.2.1 was released more than a year ago. Simply, GlobalScope does not have function `launch`. And as I understand a lot of things has changed since release.
It would be nice if I as developer can pick version of library I want to use for my plugin.
Is there a way to specify my version of kotlin or upgrade kotlin.coroutines to latest version?
Hi,
Thanks for pinging, we'll definitely take a look and consider upgrading the version, but it's too late make such changes for the upcoming 2019.3 release.
> Simply, GlobalScope does not have function `launch`
The `launch` have been an extension function for `CoroutineScope` since Coroutines 1.0 AFAIK.
BTW which features from 1.3 do you miss in the currently bundled version?
BTW which features from 1.3 do you miss in the currently bundled version?
What is the purpose of this question? Are you planning to specifically add features instead moving the latest version of the library?
My primary concern is:
- using functions which location is different in later version,
- find a bug that is fixed in later version.
It is not clear to me why latest version of CLion can not be automatically supplied with latest version of Kotlin, especially when JetBrains owns both products.
> What is the purpose of this question? Are you planning to specifically add features instead moving the latest version of the library?
Nope. Just curious.
This is useful to align other dependencies of the same group e.g. https://github.com/JetBrains/intellij-community/blob/231/.idea/libraries/kotlinx_coroutines_test.xml