https://kotlinlang.org logo
Title
h

himrin

11/09/2018, 2:55 PM
I can’t seem to get scratch files to run currently.
a

arekolek

11/09/2018, 3:25 PM
when opening a new one I need to change the module classpath from the dropdown, plus sometimes need to sync with gradle to get rid of some error
h

himrin

11/09/2018, 3:47 PM
Ah. I’ll try changing the class path. (Using Maven, not gradle)
Blargh. Even selecting the classpath where the dependency is first added, still getting errors.
Backend Internal error: Exception during code generation Cause: Back-end (JVM) Internal error: Couldn’t inline method call ‘println’ into public final fun doStuff(args: kotlin.Array<kotlin.String>): kotlin.Unit defined in org.jetbrains.kotlin.idea.scratch.generated.ScratchFileRunnerGenerated.ScratchFileRunnerGenerated fun doStuff(args: Array<String>){ println(“Hello World”) } Cause: Not generated Cause: Couldn’t find declaration file for kotlin/io/ConsoleKt