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

Odoo 16.0 Cannot find defining elements for web_dashboard.dashboard #175

Open eviltweats opened 1 year ago

eviltweats commented 1 year ago

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

Plugin Version: 0.6.11 IntelliJ Version: PyCharm 2022.3.3 IntelliJ Build: PC-223.8836.43

Unhandled exception in [StandaloneCoroutine{Cancelling}@473d2f9a, EDT] ``` at.wtioit.intellij.plugins.odoo.OdooPluginError: Cannot find defining elements for web_dashboard.dashboard with files [file://D:/Projects/Odoo16/odoo_web_tools/web_dashboard/views/container_views.xml, file://D:/Projects/Odoo16/odoo_web_tools/web_dashboard/models/container.py] at at.wtioit.intellij.plugins.odoo.models.impl.OdooModelImpl.lambda$getDefiningElement$7(OdooModelImpl.java:109) at java.base/java.util.Optional.orElseThrow(Optional.java:403) at at.wtioit.intellij.plugins.odoo.models.impl.OdooModelImpl.getDefiningElement(OdooModelImpl.java:109) at at.wtioit.intellij.plugins.odoo.models.impl.OdooModelImpl.lambda$getDefiningElement$5(OdooModelImpl.java:66) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:885) at at.wtioit.intellij.plugins.odoo.models.impl.OdooModelImpl.getDefiningElement(OdooModelImpl.java:49) at at.wtioit.intellij.plugins.odoo.OdooGoToDeclarationHandler.getOdooModel(OdooGoToDeclarationHandler.java:152) at at.wtioit.intellij.plugins.odoo.OdooGoToDeclarationHandler.getOdooModel(OdooGoToDeclarationHandler.java:137) at at.wtioit.intellij.plugins.odoo.OdooGoToDeclarationHandler.getGotoDeclarationTarget(OdooGoToDeclarationHandler.java:45) at com.intellij.codeInsight.navigation.actions.GotoDeclarationHandlerBase.getGotoDeclarationTargets(GotoDeclarationHandlerBase.java:14) at at.wtioit.intellij.plugins.odoo.OdooGoToDeclarationHandler.getGotoDeclarationTargets(OdooGoToDeclarationHandler.java:33) at com.intellij.codeInsight.navigation.impl.GtdProvidersKt.fromGTDProvidersInner(gtdProviders.kt:30) ... at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$2.invokeSuspend(InternalReadAction.kt:27) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) ... at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@473d2f9a, EDT] ```
ap-wtioit commented 1 year ago

Notes:

ap-wtioit commented 1 year ago

@eviltweats which sources are you using for web_dashboard, Odoo Enterprise 15.0 or custom ones?

eviltweats commented 1 year ago

Actually I was working on Odoo v16.

ap-wtioit commented 1 year ago

Can you tell me where your web_dashboard plugin directory is coming from? (I cannot find it on https://github.com/odoo/odoo?search=1) This should help me reproduce the bug and fix it.

eviltweats commented 1 year ago

Its a custom module.

ap-wtioit commented 1 year ago

Can you hover while holding CTRL over various elements in your container_views.xml and tell my if the exception happens again? And if so, hint my to an XML Structure that may cause this problem?