https://kotlinlang.org logo
Title
s

sbyrne

04/23/2019, 1:01 AM
I am trying to make a simple project that just has
build.gradle.kts
and
MyClass.kt
in the project dir.
build.gradle.kts
has
sourceSets { main { java { setSrcDirs(listOf(".")); exclude( "*.kts" ) } } }
. All works from from command line, but Idea doesn't pick up the project dir as a source dir, and doesn't do code completion in
MyClass.kt
.
a

Alexey Belkov [JB]

04/23/2019, 8:21 AM
Please report this issue to http://kotl.in/issue. If you just want a simple project the best way to create it that is guaranteed to work is to just do a "New Project -> Gradle -> Kotlin DSL" in Intellij IDEA.