suresh
08/30/2020, 10:15 AMval copyKotlinTemplates by tasks.registering(Copy::class) {
this.
}
Autocompletion of the above code snippet causing this error.
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?Alexey Belkov [JB]
09/04/2020, 9:18 AM