guys, how to you open like a `kotlin repl` but wit...
# announcements
a
guys, how to you open like a
kotlin repl
but with some library included. Eg: I want to make a test with RxKotlin, but I just want to see the result of something, is that possible to make a import of the library to the repl ?
g
The idea was to be able to run scratch files in AS/Idea with the context of your module. But iiric it's broken in AS.
Actually, wait, it's fixed. Try
File -> New -> Scratch FIle
a
@ghedeon I'm receiving
Copy code
Cannot access script base class 'kotlin.script.templates.standard.ScriptTemplateWithArgs'. Check your module classpath for missing or conflicting dependencies
I never used the Scratch files
now, i'm gettiing
Copy code
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
	at org.jetbrains.kotlin.idea.scratch.generated.ScratchFileRunnerGenerated.main(tmp.kt)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
i'm using
Copy code
IntelliJ IDEA 2018.3.5 (Community Edition)
Build #IC-183.5912.21, built on February 26, 2019
JRE: 1.8.0_152-release-1343-b28 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.3
@ghedeon it worked thanks
😉 1
g
yeah, worked for me in AS 3.4 RC 2