-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Document how to disable warning for ExperimentalCoroutineApi
and ObsoleteCoroutineApi
#859
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
Comments
Are you using Intellij IDEA? It should provide a clear advice what you can do with a quickfix |
Yes I use IntelliJ IDEA, but it only propose to add the By the way, I did find what to do. (using But I think it should be easier and quicker to find that information and it deserve proper documentation. |
Yeah, situation is not ideal. Intellij suggests to add
|
@qwwdfsad, any update on this? |
@jcornaz we've found a huge documentation backlog in Kotlin triggered by your issue (https://youtrack.jetbrains.com/issue/KT-28589, parent and related), but it won't be fixed soon. |
Ok, thanks @qwwdfsad. |
I use kotlinOptions {
// Disabling coroutine's ExperimentalCoroutinesApi warning
freeCompilerArgs += [
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xuse-experimental=kotlinx.coroutines.TheAnnotationYouWantToDisable"
]
} |
I use
|
Prior Kotlin 1.3 documentation was clear on how to disable warning for experimental usage of coroutines. (for gradle:
kotlin.experimental.coroutines 'enable'
). And it worked well.But since Kotlin 1.3, I'm not able to find clear and official documentation about how to disable warnings for usages of
ExperimentalCoroutineApi
andObsoleteCoroutineApi
. I managed to find few things but it is never clear, and doesn't work well.I suggest to document this. Here is few places I'd expect to find that information:
The text was updated successfully, but these errors were encountered: