Intellij autocompletion is failing frequently with...
# compose-desktop
s
Intellij autocompletion is failing frequently with the following error. Have noticed this only for compose desktop applications. Things won't work until i cleanup that compose runtime jar from gradle cache. Is this a compose plugin issue? Has anybody seen this issue earlier?
Copy code
com.intellij.psi.stubs.UpToDateStubIndexMismatch: PSI and index do not match.
Please report the problem to JetBrains with the files attached
INDEXED VERSION IS THE CURRENT ONE file=KtFile: ProduceStateScopeImpl.class, file.class=class org.jetbrains.kotlin.idea.decompiler.classFile.KtClsFile, file.lang=Language: kotlin, modStamp=1
 AST INCONSISTENT, perhaps after incremental reparse; KtFile: ProduceStateScopeImpl.class
 stub debugInfo=created in getStubTree(), with AST = false; with backReference
latestIndexedStub=StubTree{myDebugInfo='created from index; with backReference', myRoot=PsiJetFileStubImpl[package=androidx.compose.runtime]}1615692120
   same size=true
   debugInfo=created from index; with backReference
 viewProvider=org.jetbrains.kotlin.idea.decompiler.KotlinDecompiledFileViewProvider{vFile=jar:///Users/xxx/.gradle/caches/modules-2/files-2.1/org.jetbrains.compose.runtime/runtime-desktop/0.1.0-build113/3210ec4f762a877390f2b6462f3919cd3a6580e9/runtime-desktop-0.1.0-build113.jar!/androidx/compose/runtime/ProduceStateScopeImpl.class, vFileId=1202084, content=VirtualFileContent{size=5451}, eventSystemEnabled=true}
 viewProvider stamp: 0; file stamp: 0; file modCount: 1605036751442; file length: 5451
 doc saved: true; doc stamp: 0; doc size: 772; committed: true
indexing info: indexing timestamp = 1605036751442, binary = true, byte size = 5451, char size = -1
	at com.intellij.psi.stubs.StubTreeLoader.handleUpToDateMismatch(StubTreeLoader.java:135)
o
Could you please report an issue with project setup in https://github.com/JetBrains/compose-jb/issues. cc: @Sebastian Sellmair [JB]