-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Dispatchers.Main causes IDE error loops in 0.27.0 #626
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
FYI, I just tested on another computer, and the same issue happens on a Windows 10 machine (first tested on a Mac). |
Noticing the same behavior on Linux. I have to manually write |
Downgraded because of this bug in 0.27.0: Kotlin/kotlinx.coroutines#626
Just tried with version 0.30.0, and it has the same issue. |
@LouisCAD What version of kotlin plugin do you have? |
I had plugin version |
Seems like kotlin plugin bug. I've created https://youtrack.jetbrains.com/issue/KT-27274 |
@erokhins I have 1.2.71 for Android Studio 3.2 |
Here's a workaround, taking place at the dependency level: api "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.0"
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.26.1" It seems there has been no real changes in the Android artifact since version 0.26.1, so it should be safe to use with core version 0.30.0. I tried successfully on a project. |
…discoverable via ServiceLoader * Dispatchers.Main can be consistently used and easily discovered, its implementation is discovered with ServiceLoader * It allows us to add iOS Dispatchers.Main implementation in the future thus opening the door for multiplatform UI-dispatched code * Workaround for #626, now Android users can start migration to RC coroutines Fixed #626
This issue doesn't happen on version 0.26.1, and neither invalidate caches and restart nor refresh dependencies solve it on 0.27.0
When I hover the mouse with command held down, it recognizes everything but
.Main
that comes afterDispatchers
, even when imported manually (autocomplete doesn't work for it).I'm forced to revert to 0.26.1 to work on an update for BleGattCoroutines because of this.
Title of the IDE error:
Worker exited due to exception
File
/Users/MysUserName/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-android/0.27.0/d39131c2f7b764a793152c5fa61205033d5553a0/kotlinx-coroutines-android-0.27.0.jar!/kotlinx/coroutines/experimental/android/HandlerDispatcherKt.class_file.txt
:File
stubTree.txt
:File
stubTreeFromIndex.txt
:The text was updated successfully, but these errors were encountered: