I'm trying to enable coroutines in javascript, although I've been succesful with a Gradle project. it seems that the instructions for a IntelliJ project are not working (https://kotlinlang.org/docs/diagnostics/experimental-coroutines.html), and I'm unable to do it. Neither the quick-fix method or changing the compiler options works for me (The menu path for this, seems also wrong). I'm using the latest IntelliJ IDEA Community and the latest stable Kotlin Plugin.
a
anton.bannykh
06/13/2017, 9:18 AM
hiperbou: About the quick fix, could you give some more detail? Are you able to trigger the 'Enable coroutine support' quick fix on, let's say,
suspend
keyword? Is the
.idea/kotlinc.xml
created as a result (you might have to Alt-Tab Alt-Tab to force idea to rescan the fs) ?
h
hiperbou
06/13/2017, 2:35 PM
Well, I was just confused. The coroutine support was clearly working, As the suspend keyword and other primitives worked as expected. For some reason I thought that some functions existing in the kotlinx.coroutines library where part of the stdlib... but this library seems to have dependencies on the JRE and can't be used as is in a javascript project. anyway, thanks for your response 😄