I am not sure whether I should put it here on IDEA discussion, but since it is kotlin-specific, I will try here first.
I am using kotlin for some simulation and data analysis so sometimes I want to work right from IDE without building the project first. I can easily do it with gradle tasks or by creating
main function in a file, but it requires additional body movements which I do not like. When I am working with Groovy, I just create a script file and execute it in IDE.
Kotlin also supports scripting and even REPL inside IDE.
The problem is that script does not seems to have access to other project classes. Its classpath does not include build directory. Is it intended to be like this? And, by the way, it for some reason changes encoding to system default instead of project default (which is probably a bug).
REPL inside IDE is a great thing, but it seems to be unstable, since it throws some vague
NoClassDefFoundError when using kotlin global functions.