Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random exception: Storage for FuncNamedElementIndex.storage is already registered #181

Open
andreypfau opened this issue Jun 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@andreypfau
Copy link
Member

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

@andreypfau andreypfau added the bug Something isn't working label Jun 9, 2024
andreypfau added a commit that referenced this issue Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant