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

keturn

04/23/2020, 7:04 PM
I'm giving scripting a try and am not yet clear on the different modes there seem to be. The things IDEA has "new file" interfaces for are "Script" and "Worksheet" (
.ws.kts
), but do I need
.main.kts
instead of
.ws.kts
to use dependencies?
i

ilya.chernikov

04/27/2020, 9:19 AM
The integration with IntelliJ is not too smooth yet. So, yes, you need to manually give your file the
.main.kts
extension to be able to use
main-kts
functionality, in particular - dynamic dependencies.