IntelliJ kotlin plugin is keeps on throwing this e...
# intellij-plugins
s
IntelliJ kotlin plugin is keeps on throwing this error and kotlin auto complete won't work after that.
Copy code
java.lang.Throwable: Stub index points to a file without PSI: file = jar:///Users/xxxx/.gradle/caches/jars-8/2f0488fc7744f9ab734f8bb1c040c21a/kotlin-gradle-plugin-1.4.10.jar!/org/jetbrains/kotlin/gradle/plugin/mpp, file type = com.intellij.openapi.fileTypes.UnknownFileType@19c2400b, indexed file type = com.intellij.ide.highlighter.JavaClassFileType@6f164302, used scope = Union: (ModuleProductionSourceScope(Module: 'openjdk-latest.buildSrc.main'),File :file:///Users/sgopal1/code/openjdk-playground/build.gradle.kts,SdkScope(15: version 15.0.1 (/Users/sgopal1/.sdkman/candidates/java/15.0.1-open)),KotlinSourceFilterScope(delegate=com.intellij.psi.search.NonClasspathDirectoriesScope@a1203aa src=false libSrc=false cls=true scriptDeps=true scripts=false))
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:159)
	at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:52)
	at com.intellij.psi.stubs.StubIndexImpl.lambda$processElements$2(StubIndexImpl.java:289)
	at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:325)
	at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:105)
	at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:93)
	at org.jetbrains.kotlin.idea.stubindex.KotlinFunctionShortNameIndex.get(KotlinFunctionShortNameIndex.java:49)
	at org.jetbrains.kotlin.idea.stubindex.KotlinFunctionShortNameIndex.get(KotlinFunctionShortNameIndex.java:29)
	at org.jetbrains.kotlin.idea.core.KotlinIndicesHelper$processObjectMembers$1.invoke(KotlinIndicesHelper.kt:424)
	at org.jetbrains.kotlin.idea.core.KotlinIndicesHelper.processObjectMembers(KotlinIndicesHelper.kt:439)