Hi all, is it possible to get auto completion work...
# scripting
b
Hi all, is it possible to get auto completion working on a .kts file in the root of your project folder? (Similar to build.gradle.kts file)
i
For now you need to have an IDEA plugin to make it. In gradle’s case the functionality is included in the kotlin plugin itself, but it is rather an exception. As a workaround you can specify your script definition with dependencies in the IDEA configuration (Build… -> Compiler -> Kotlin Compiler -> Kotlin Scripting), they will work everywhere, provided that you’ll make correct definition (see e.g.
kotlin-main-kts
in the kotlin project). We are considering other ways to configure definitions for scripts outside of the source roots, but so far haven’t come up with any good scheme for it.