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

Exception in Odoo Autocompletion Support #288

Closed BahmedBy closed 5 months ago

BahmedBy commented 5 months ago

<-- If you remember any details about how the error can be reproduced please add them -->

Plugin Version: 0.6.11 IntelliJ Version: PyCharm 2023.3.2 IntelliJ Build: PY-233.13135.95

com.intellij.openapi.progress.IndicatorCancellationException ``` java.lang.Throwable: Control-flow exceptions (e.g. this class com.intellij.openapi.progress.CeProcessCanceledException) should never be logged. Instead, these should have been rethrown if caught. ->at com.intellij...ensureNotControlFlow(Logger.java:513) ... ->at java...run(ForkJoinWorkerThread.java:165) Caused by: com.intellij.openapi.progress.CeProcessCanceledException: com.intellij.openapi.progress.IndicatorCancellationException ->at com.intellij...invoke(ComponentManagerImpl.kt:2409) ... ->at com.intellij...exec(JobLauncherImpl.java:187) ... 5 more Caused by: com.intellij.openapi.progress.IndicatorCancellationException ->at com.intellij...invokeSuspend(context.kt:146) ... ->at kotlinx...run(CoroutineScheduler.kt:684) Caused by: com.intellij.openapi.progress.ProcessCanceledException: com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlTagImpl #XML because: parent is null invalidated at: see attachment ->at com.intellij...throwIfCanceled(AbstractProgressIndicatorBase.java:158) ... ->at com.intellij...invokeSuspend(context.kt:142) ... 8 more Caused by: com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlTagImpl #XML because: parent is null invalidated at: see attachment ->at com.intellij...getContainingFile(CompositePsiElement.java:90) at at.wtioit.intellij.plugins.odoo.records.index.OdooRecordImpl.findVirtualFile(OdooRecordImpl.java:118) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$hasRecord$6(OdooRecordServiceImpl.java:154) ->at java...accept(ReferencePipeline.java:197) ... ->at java...anyMatch(ReferencePipeline.java:632) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$hasRecord$9(OdooRecordServiceImpl.java:156) at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:15) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.hasRecord(OdooRecordServiceImpl.java:153) at at.wtioit.intellij.plugins.odoo.records.inspection.MissingRecordDefinitionXmlInspection$1.visitXmlToken(MissingRecordDefinitionXmlInspection.java:44) ->at com.intellij...accept(XmlTokenImpl.java:29) ... ->at java...run(ForkJoinWorkerThread.java:165) ```