I'm getting really annoyed by intelliJ's debugger'...
# coroutines
g
I'm getting really annoyed by intelliJ's debugger's evaluate expression refusing to run
channel.isClosedForReceive
because
This declaration is experimental and its usage must be marked with '@kotlinx.coroutines.InternalCoroutinesApi' or '@UseExperimental(kotlinx.coroutines.InternalCoroutinesApi::class)'
any help?
b
You need to explicitly opt-in to use an
InternalCoroutinesApi
. You should use the add
@UseExperimental...
suggestion
g
how do I do that to the evaluate expression dialog?
b
Try adding
@UseExperimental(kotlinx.coroutines.InternalCoroutinesApi::class)
to the beginning of your evaluation
g
I didnt think that was legal kotlin, I didnt realize you could put annotations on arbitrary
expr
elements (maybe thats just a debugger thing?)
but no good
message has been deleted
d
Yeah, they should consider removing this limitation from the debugger.
b
Try adding it to your compiler arguments
-Xuse-experimental=kotlinx.coroutines.InternalCoroutinesApi
I wouldn't recommend committing it though