I can’t seem to get scratch files to run currently...
# getting-started
h
I can’t seem to get scratch files to run currently.
a
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
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