ton-blockchain/intellij-ton

Random exception: Storage for FuncNamedElementIndex.storage is already registered

Opened this issue · 0 comments

java.lang.IllegalStateException: Storage for [/Users/andreypfau/Library/Caches/JetBrains/IntelliJIdea2024.2/index/stubs/org.ton.intellij.func.stub.index.funcnamedelementindex/org.ton.intellij.func.stub.index.FuncNamedElementIndex.storage] is already registered
	at com.intellij.util.io.FilePageCache.registerPagedFileStorage(FilePageCache.java:410)
	at com.intellij.util.io.PagedFileStorage.<init>(PagedFileStorage.java:74)
	at com.intellij.util.io.ResizeableMappedFile.<init>(ResizeableMappedFile.java:70)
	at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:130)
	at com.intellij.util.io.PersistentEnumerator.createDefaultEnumerator(PersistentEnumerator.java:53)
	at com.intellij.util.io.PersistentMapImpl.<init>(PersistentMapImpl.java:167)
	at com.intellij.util.io.PersistentMapImpl.<init>(PersistentMapImpl.java:142)
	at com.intellij.util.indexing.impl.MapIndexStorage.lambda$createPersistentMap$2(MapIndexStorage.java:135)
	at com.intellij.util.io.PersistentHashMapValueStorage$CreationTimeOptions.with(PersistentHashMapValueStorage.java:134)
	at com.intellij.util.indexing.impl.MapIndexStorage.createPersistentMap(MapIndexStorage.java:125)
	at com.intellij.util.indexing.impl.MapIndexStorage.createValueContainerMap(MapIndexStorage.java:141)
	at com.intellij.util.indexing.impl.MapIndexStorage.initMapAndCache(MapIndexStorage.java:76)
	at com.intellij.util.indexing.impl.storage.VfsAwareMapIndexStorage.initMapAndCache(VfsAwareMapIndexStorage.java:60)
	at com.intellij.util.indexing.impl.storage.VfsAwareMapIndexStorage.<init>(VfsAwareMapIndexStorage.java:55)
	at com.intellij.psi.stubs.StubIndexImpl$StubIndexStorageLayout.openIndexStorage(StubIndexImpl.java:342)
	at com.intellij.util.indexing.impl.storage.TransientFileContentIndex$1.openIndexStorage(TransientFileContentIndex.java:40)
	at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.lambda$new$0(VfsAwareMapReduceIndex.java:59)
	at com.intellij.util.indexing.impl.MapReduceIndex.<init>(MapReduceIndex.java:75)
	at com.intellij.util.indexing.storage.MapReduceIndexBase.<init>(MapReduceIndexBase.java:39)
	at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.<init>(VfsAwareMapReduceIndex.java:68)
	at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.<init>(VfsAwareMapReduceIndex.java:58)
	at com.intellij.util.indexing.impl.storage.TransientFileContentIndex.<init>(TransientFileContentIndex.java:36)
	at com.intellij.util.indexing.impl.storage.TransientFileContentIndex.createIndex(TransientFileContentIndex.java:189)
	at com.intellij.psi.stubs.StubIndexImpl.registerIndexer(StubIndexImpl.java:152)
	at com.intellij.psi.stubs.StubIndexImpl$StubIndexInitialization.lambda$prepareTasks$1(StubIndexImpl.java:401)
	at com.intellij.util.indexing.IndexDataInitializer$Companion.executeTask(IndexDataInitializer.kt:98)
	at com.intellij.util.indexing.IndexDataInitializer$Companion.access$executeTask(IndexDataInitializer.kt:53)
	at com.intellij.util.indexing.IndexDataInitializer$Companion$runParallelTasks$1$1.invokeSuspend(IndexDataInitializer.kt:83)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
	Suppressed: java.lang.Exception: Storage[/Users/andreypfau/Library/Caches/JetBrains/IntelliJIdea2024.2/index/stubs/org.ton.intellij.func.stub.index.funcnamedelementindex/org.ton.intellij.func.stub.index.FuncNamedElementIndex.storage] registration stack trace
		at com.intellij.util.io.FilePageCache.registerPagedFileStorage(FilePageCache.java:437)
		... 35 more