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

Exception when opening "Search structurally" in a freshly opened project #233

Open
fan-tom opened this issue Feb 19, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@fan-tom
Copy link
Owner

fan-tom commented Feb 19, 2024

com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation
	at com.intellij.openapi.project.IndexNotReadyException.create(IndexNotReadyException.java:67)
	at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:821)
	at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:769)
	at com.intellij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:296)
	at com.intellij.util.indexing.FileBasedIndexEx.processValueIterator(FileBasedIndexEx.java:391)
	at com.intellij.util.indexing.FileBasedIndexEx.processValuesInScope(FileBasedIndexEx.java:357)
	at com.intellij.util.indexing.FileBasedIndexImpl.processValuesInScope(FileBasedIndexImpl.java:1098)
	at com.intellij.util.indexing.FileBasedIndexEx.getValues(FileBasedIndexEx.java:121)
	at com.github.fantom.codeowners.indexing.CodeownersFilesIndex$Companion.getEntries(CodeownersFilesIndex.kt:68)
	at com.github.fantom.codeowners.CodeownersManager.cachedCodeownersFilesIndex$lambda$1(CodeownersManager.kt:114)
	at com.github.fantom.codeowners.util.CachedConcurrentMap$get$1.invoke(CachedConcurrentMap.kt:19)
	at com.github.fantom.codeowners.util.CachedConcurrentMap.get$lambda$0(CachedConcurrentMap.kt:19)
	at java.base/java.util.concurrent.ConcurrentMap.computeIfAbsent(ConcurrentMap.java:330)
	at com.github.fantom.codeowners.util.CachedConcurrentMap.get(CachedConcurrentMap.kt:19)
	at com.github.fantom.codeowners.CodeownersManager.getCodeownersFiles(CodeownersManager.kt:196)
	at com.github.fantom.codeowners.search.CodeownersSearchScopeDescriptor.getScope(CodeownersSearchScopeDescriptor.kt:30)
	at com.intellij.structuralsearch.plugin.ui.ScopePanel.lambda$static$0(ScopePanel.java:56)
	at com.intellij.ide.util.scopeChooser.ScopeChooserCombo.lambda$rebuildModelAndSelectScopeOnSuccess$1(ScopeChooserCombo.java:203)
	at com.intellij.ide.util.scopeChooser.ScopeModel$Companion.doProcessScopes(ScopeModel.kt:115)
	at com.intellij.ide.util.scopeChooser.ScopeModel$Companion.access$doProcessScopes(ScopeModel.kt:79)
	at com.intellij.ide.util.scopeChooser.ScopeModel$getScopeDescriptors$1$1.invoke(ScopeModel.kt:73)
	at com.intellij.ide.util.scopeChooser.ScopeModel$getScopeDescriptors$1$1.invoke(ScopeModel.kt:71)
	at com.intellij.ide.util.scopeChooser.ScopeModel$getScopeDescriptors$1.invoke$lambda$0(ScopeModel.kt:71)
	at org.jetbrains.concurrency.AsyncPromise$then$1$1.invoke(AsyncPromise.kt:144)
	at org.jetbrains.concurrency.AsyncPromise.then$lambda$8$lambda$7(AsyncPromise.kt:142)
	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
	at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147)
	at org.jetbrains.concurrency.AsyncPromise.setResult(AsyncPromise.kt:188)
	at com.intellij.psi.search.PredefinedSearchScopeProviderImpl$getPredefinedScopesAsync$2.invoke(PredefinedSearchScopeProviderImpl.kt:81)
	at com.intellij.psi.search.PredefinedSearchScopeProviderImpl$getPredefinedScopesAsync$2.invoke(PredefinedSearchScopeProviderImpl.kt:78)
	at com.intellij.psi.search.PredefinedSearchScopeProviderImpl.getPredefinedScopesAsync$lambda$1(PredefinedSearchScopeProviderImpl.kt:78)
	at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$safeTransferToEdt$7(NonBlockingReadActionImpl.java:717)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:194)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:843)
	at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:463)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:75)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:67)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWithImplicitRead(ApplicationImpl.java:1436)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:82)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:124)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:44)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:695)
	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$12(IdeEventQueue.kt:589)
	at com.intellij.openapi.application.impl.RwLockHolder.runWithoutImplicitRead(RwLockHolder.kt:44)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:589)
	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:72)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:355)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:354)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:793)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:354)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:349)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1014)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1014)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:349)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:848)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:391)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
@fan-tom fan-tom added the bug Something isn't working label Feb 19, 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