Open uday-bista opened 1 year ago
Hello @ap-wtioit
Is there any update on this errors?
Thanks
@uday-bista i keep asking the reporters if they can provide any details how i can reproduce this. but nobody has answered for a long time. (or noticed the <-- If you remember any details about how the error can be reproduced please add them -->
at the beginning of the issue report)
Basically i have a few workarounds in place already (see #33 and #67) and checked with others for a solution in https://youtrack.jetbrains.com/issue/IDEA-291382/Assertion-failed-at-VirtualDirectoryImpl.doFindChildById somehow for newer versions of IntelliJ the workarrounds seem to no longer work.
I have an Idea how to catch this error but until i can reproduce the error (say at least with 30% accuracy) i'm afraid that providing a "patch" and stating this as "fixed" would not really be honest to the users of the plugin.
The old way of reproducing the issue (that also reproduced the issue in plugins from jetbrains directly) as stated here unfortunately is no longer working.
Can you reproduce this with reasonable accuracy on your systems? (If so we could work together and i could send you an in progress patch that maybe fixes the issue)
<-- If you remember any details about how the error can be reproduced please add them -->
Plugin Version: 0.6.11 IntelliJ Version: PyCharm 2023.1 IntelliJ Build: PC-231.8109.197
java.lang.Throwable: Assertion failed
``` java.lang.Throwable: Assertion failed at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:258) ... at com.intellij.psi.search.FilenameIndex.getVirtualFilesByName(FilenameIndex.java:62) at at.wtioit.intellij.plugins.odoo.compatibility.CompatibleFileIndex.getVirtualFilesByName(CompatibleFileIndex.java:40) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.lambda$getModuleDirectorySlow$5(OdooModuleServiceImpl.java:149) at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:12) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.lambda$getModuleDirectorySlow$6(OdooModuleServiceImpl.java:148) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:878) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.getModuleDirectorySlow(OdooModuleServiceImpl.java:144) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.getModuleDirectory(OdooModuleServiceImpl.java:139) at at.wtioit.intellij.plugins.odoo.modules.index.OdooDeserializedModuleImpl.getDirectory(OdooDeserializedModuleImpl.java:65) at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:15) at at.wtioit.intellij.plugins.odoo.pycharm.PyCharmOdooAddonsImportResolver.resolveImportReference(PyCharmOdooAddonsImportResolver.java:37) at at.wtioit.intellij.plugins.odoo.pycharm.PyCharmOdooAddonsImportResolver.resolveImportReference(PyCharmOdooAddonsImportResolver.java:41) at com.jetbrains.python.psi.resolve.PyResolveImportUtil$foreignResults$1.invoke(PyResolveImportUtil.kt:198) ... at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ```