trying Kotlin on a new project, but nothing is working, details inside

trying Kotlin on a new project, but nothing is working, details inside

So I’m trying to make anew Kotlin project but there’s a problem, I can’t even produce a Hello World. Using intellij 2020.2.3 there appears to be two ways to create a Kotlin project (Either selecting Kotlin directly, or choosing Java and selecting Kotlin/JVM as an additional framework), and neither of them work out of the box, and all of the documentation I can find is seemingly out of date (https://kotlinlang.org/docs/tutorials/jvm-get-started.html for example, the UI options it walks you through don’t exist),

Once you successfully create a project, it fails to setup because the configuration doesn’t work. I had to update some gradle options to get the correct version of gradle for my version of the JVM. Thankfully I was able to find that solution on Stack Overflow because I would have never figured that out on my own or with the available documentation. So it downloads the new gradle version, and the example main function created by the IDE has no green Run button in the gutter, and attempting to build the project yielded some 2000 lines of LLVM optimization errors.

Is there a better “hello world” walkthrough somewhere on the internet? I’m not really finding a lot of help with all of this, and frankly this is kind of a nightmare compared to pretty much every other environment I’ve ever worked with.

submitted by /u/zellyman
[link] [comments]