https://kotlinlang.org logo
Title
a

amadeu01

03/21/2019, 12:48 PM
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

ghedeon

03/21/2019, 12:59 PM
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

amadeu01

03/21/2019, 3:25 PM
@ghedeon I'm receiving
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
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
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

ghedeon

03/21/2019, 9:09 PM
yeah, worked for me in AS 3.4 RC 2