Having lot of issues (mainly on auto completion an...
# intellij
s
Having lot of issues (mainly on auto completion and speed) with Kotlin Gradle DSL and the latest 1.4.0 release .
Copy code
val copyKotlinTemplates  by tasks.registering(Copy::class) {
  this.
}
Autocompletion of the above code snippet causing this error.
Copy code
java.lang.IllegalStateException: Illegal type substitutor: org.jetbrains.kotlin.resolve.calls.inference.components.NewTypeSubstitutorByConstructorMap@7b541476, because for captured type 'CapturedType(out TypeVariable(C))' supertype approximation should be null, but it is: 'TypeVariable(C)',original supertype: 'TaskContainer'
	at org.jetbrains.kotlin.resolve.calls.inference.components.NewTypeSubstitutor$DefaultImpls.throwExceptionAboutInvalidCapturedSubstitution(NewTypeSubstitutor.kt:144)
	at org.jetbrains.kotlin.resolve.calls.inference.components.NewTypeSubstitutor$DefaultImpls.substitute(NewTypeSubstitutor.kt:93)
...
2020-08-30 03:09:40,382 [1252429]  ERROR - on.CompletionProgressIndicator - IntelliJ IDEA 2020.2.1  Build #IU-202.6948.69 
2020-08-30 03:09:40,382 [1252429]  ERROR - on.CompletionProgressIndicator - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2020-08-30 03:09:40,382 [1252429]  ERROR - on.CompletionProgressIndicator - OS: Mac OS X 
2020-08-30 03:09:40,382 [1252429]  ERROR - on.CompletionProgressIndicator - Plugin to blame: Kotlin version: 1.4.0-release-IJ2020.2-1 
2020-08-30 03:09:40,382 [1252429]  ERROR - on.CompletionProgressIndicator - Last Action: CodeCompletion
Any hint on whats wrong here or is this a kotlin plugin bug?
a
Yes, sorry, this is a regression in Kotlin plugin, please follow https://youtrack.jetbrains.com/issue/KTIJ-127 for updates.