wt-io-it / odoo-pycharm-plugin

Plugin to Support Odoo in Pycharm
GNU Affero General Public License v3.0
19 stars 10 forks source link

IndexNotReadyException in OdooModuleServiceImpl getModule #180

Open YuvalMenashe opened 1 year ago

YuvalMenashe commented 1 year ago

Plugin Version: 0.6.9 IntelliJ Version: PyCharm 2021.3.3 IntelliJ Build: PC-213.7172.26

During running [com.intellij.refactoring.suggested.SuggestedRefactoringChangeListener$sam$java_lang_Runnable$0@7a2eb496, performLaterWhenAllCommitted(), performLaterWhenAllCommitted(), performLaterWhenAllCommitted(), performLaterWhenAllCommitted(), performLaterWhenAllCommitted(), performLaterWhenAllCommitted(), performLaterWhenAllCommitted()] ``` 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.FileBasedIndexEx.getValues(FileBasedIndexEx.java:111) at at.wtioit.intellij.plugins.odoo.index.OdooIndex.getValues(OdooIndex.java:49) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.lambda$getModule$1(OdooModuleServiceImpl.java:63) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:852) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.getModule(OdooModuleServiceImpl.java:61) at at.wtioit.intellij.plugins.odoo.pycharm.PyCharmOdooAddonsImportResolver.resolveImportReference(PyCharmOdooAddonsImportResolver.java:48) at com.jetbrains.python.psi.resolve.PyResolveImportUtil$foreignResults$1.invoke(PyResolveImportUtil.kt:199) at com.jetbrains.python.psi.resolve.PyResolveImportUtil$foreignResults$1.invoke(PyResolveImportUtil.kt) at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210) ... at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:807) at com.jetbrains.python.psi.resolve.PyResolveImportUtil.foreignResults(PyResolveImportUtil.kt:201) ... at com.jetbrains.python.refactoring.suggested.PySuggestedRefactoringSupport.signatureRange(PySuggestedRefactoringSupport.kt:60) at com.intellij.refactoring.suggested.SuggestedRefactoringAvailabilityIndicatorKt.changeSignatureAvailabilityRange(SuggestedRefactoringAvailabilityIndicator.kt:280) ... at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:187) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) ... at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891) ... at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:492) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ... at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ```