Hi all! I’m trying to build Kotlin itself (1.3.30)...
# intellij
s
Hi all! I’m trying to build Kotlin itself (1.3.30) using IntelliJ Ultimate 2019.1, but the Gradle project import is crashing with some bytecode-related problem and I can’t figure out why. (If this isn’t the right channel, can you let me know where to look?) I am just trying to import the Gradle project per the Kotlin setup instructions, but it crashes on the “Configure build” step, apparently in kotlin-gradle-plugin:dokka, with a “java.lang.VerifyError: Uninitialized object exists on backward branch 302", apparently when trying to create a proxy class for org.jetbrains.dokka.gradle.DokkaTask, and it then spits out a bunch of bytecode. Any ideas? Note that using gradlew from the command line generally works fine, minus a few test failures a few hours into the build process. While I don’t mind using gradlew to do builds, I really do want to get the project imported into the IDE for type completion, navigation, etc.
The answer is, apparently, that I had a too-old version of JDK8 in my IntelliJ settings. Although I thought I was selecting the newer one, I believe all of the configured JDKs had the name “1.8” and I think the first one with that name was being UI regardless of what I chose in the UI. I banished the old JDK, gave them all unique names, and it seems to be working now.
👍🏼 1