KT 1.1-M02; running/making from IDEA it works, but...
# eap
i
KT 1.1-M02; running/making from IDEA it works, but building with gradle (with a kotlin buildscript), i get an exception compiling a program. error:
Copy code
ERROR: Exception while analyzing expression at (30,37) in /Users/bhaug/Documents/Projects/knaif/src/main/kotlin/net/berndhaug/knaif/Knaif.kt:
String::trim

java.lang.IllegalStateException: @NotNull method org/jetbrains/kotlin/builtins/KotlinBuiltIns.getBuiltInClassByName must not return null
    at org.jetbrains.kotlin.builtins.KotlinBuiltIns.getBuiltInClassByName(KotlinBuiltIns.java:305)
    at org.jetbrains.kotlin.builtins.KotlinBuiltIns.getBuiltInClassByName(KotlinBuiltIns.java:298)
    at org.jetbrains.kotlin.builtins.FunctionTypesKt.getFunctionTypeArgumentProjections(functionTypes.kt:125)
    at org.jetbrains.kotlin.builtins.ReflectionTypes.getKFunctionType(ReflectionTypes.kt:80)
line 30 is
return contents.split("\n").map(String::trim).filter { it != "" }.map(Duration.Companion::fromLine)
do you see anything obvious/known I’m triggering or something that’s known fixed in 1.1-M03? not sure whether I want to upgrade right now because the plugin works well for me right now, but this is kinda showstopper.