https://kotlinlang.org logo
#scripting
Title
# scripting
k

Kevin Barbour

02/03/2023, 6:02 PM
Is it expected behavior that in Kotlin scripts in IntelliJ (.kts or .ws.kts files) there is no feedback when something goes wrong in the code? For example if I drop
throw RuntimeException()
into a script then the entire output window goes blank and there is no indication that an exception was thrown
i

ilya.chernikov

02/06/2023, 12:10 PM
Does it happen during scratch/workspace editing? cc: @Andrei Klunnyi
k

Kevin Barbour

02/06/2023, 1:12 PM
Yeah that's where I'm seeing it.
For example, when I don't have the exception thrown, I get the
println
output
but when I do add the exception nothing is executed and there is no indication the exception was thrown
This example is rather trivial but it becomes a problem when you call other code that throws an exception and then have no indication of where the issue is coming from or what it is
a

Andrei Klunnyi

02/06/2023, 2:19 PM
Hi Kevin, Sorry, but hardly I can answer your question promptly. Can I ask you to file an issue in YouTrack, please?
k

Kevin Barbour

02/06/2023, 2:20 PM
Hey Andrei, no problem. I will create an issue.
👍 1
5 Views