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

OdooModuleServiceImpl.getModule IndexNotReadyException #125

Closed reinaldojpramos closed 1 year ago

reinaldojpramos commented 1 year ago

Plugin Version: 0.6.9 IntelliJ Version: PyCharm 2022.3.1 IntelliJ Build: PY-223.8214.51

com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation ``` 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:66) ... at com.intellij.util.indexing.FileBasedIndexEx.getValues(FileBasedIndexEx.java:139) 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:860) 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.resolveQualifiedName(PyResolveImportUtil.kt:74) at dev.ngocta.pycharm.odoo.python.OdooCanonicalPathProvider.getCanonicalPath(OdooCanonicalPathProvider.java:28) at com.jetbrains.python.psi.resolve.QualifiedNameFinder.canonizeQualifiedName(QualifiedNameFinder.java:182) ... at com.intellij.refactoring.suggested.SuggestedRefactoringChangeListener$MyDocumentListener.beforeDocumentChange(SuggestedRefactoringChangeListener.kt:210) at jdk.internal.reflect.GeneratedMethodAccessor241.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ... at com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:85) at jdk.proxy2/jdk.proxy2.$Proxy91.beforeDocumentChange(Unknown Source) at com.intellij.openapi.editor.impl.DocumentImpl.lambda$beforeChangedUpdate$1(DocumentImpl.java:881) ... at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92) ```
ap-wtioit commented 1 year ago

@reinaldoramosarxi can you reproduce this bug or is it also happening sporadically for you?

reinaldojpramos commented 1 year ago

Hello,

It's sporadic, can't really reproduce it.

bigbear3001 commented 1 year ago

this is fixed with #67 in 0.6.10 (pending jetbrains approval for the marketplace) if you are eager to test it you can use the jar file from https://github.com/wt-io-it/odoo-pycharm-plugin/tree/v0.6.10

ap-wtioit commented 1 year ago

0.6.10 is available in the marketplace now