https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
n

natpryce

02/20/2019, 9:56 AM
Are native Kotlin platforms supported in IntelliJ? When I try to debug failing tests on the native platform, IntelliJ runs them via Gradle and then debugs Gradle itself, not the native code it’s running. Do I need to install CLion to work on Kotlin Native at the moment?
o

olonho

02/20/2019, 10:07 AM
Code completion works in IDEA, for debugging CLion could be better approach.
n

natpryce

02/20/2019, 10:14 AM
Ta
Unfortunately it doesn’t work. The Kotlin/Native plugin crashes on loading the project, and CLion identifies the Kotlin test source as Python, and tries to run them in a Python interpreter. I’ve submitted crash reports from the IDE.
n

natpryce

02/20/2019, 11:49 AM
That’s the plugin version I’m using.
On loading the project, I get the errors:
Copy code
Invalid Gradle JDK configuration found. Open Gradle Settings 
Project JDK is not specified. Open Project SDK Configuration
I cannot find an option to set the Project JDK in CLion
I wiped the .idea directory and reloaded the gradle file as a brand new project. I no longer get errors about the Project JDK.
However, CLion still thinks the native Kotlin tests are Python code
Should I use AppCode and not CLion?
o

olonho

02/20/2019, 8:33 PM
not at the moment, better report CLion bug with reproducer, it usually known to work