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

getModuleDirectorySlow java.lang.Throwable: Assertion failed #37

Closed m3asmi closed 2 years ago

m3asmi commented 2 years ago

Plugin Version: 0.5.13 IDEA Version: PyCharm 2022.1.2

java.lang.Throwable: Assertion failed ``` java.lang.Throwable: Assertion failed at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:218) ... at com.intellij.psi.search.FilenameIndex.getFilesByName(FilenameIndex.java:79) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.lambda$getModuleDirectorySlow$3(OdooModuleServiceImpl.java:136) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:920) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.getModuleDirectorySlow(OdooModuleServiceImpl.java:134) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.getModuleDirectory(OdooModuleServiceImpl.java:121) at at.wtioit.intellij.plugins.odoo.modules.index.OdooDeserializedModuleImpl.getDirectory(OdooDeserializedModuleImpl.java:64) at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:15) at at.wtioit.intellij.plugins.odoo.pycharm.PyCharmOdooAddonsImportResolver.resolveImportReference(PyCharmOdooAddonsImportResolver.java:51) at com.jetbrains.python.psi.resolve.PyResolveImportUtil$foreignResults$1.invoke(PyResolveImportUtil.kt:199) ... at java.base/java.lang.Thread.run(Thread.java:829) ```
ap-wtioit commented 2 years ago

Stacktrace seems to equal #33 (except the invocation from dev.ngocta is not visible here)

ap-wtioit commented 2 years ago

fixed with https://github.com/wt-io-it/odoo-pycharm-plugin/issues/33 (620508fc55b16691df8772f3239f21fd4f06be56 and 9be48e2c3afc109a75a290b1a34017d18f2579f7, 0.5.18)

ap-wtioit commented 2 years ago

0.5.18 is now available in jetbrains marketplace https://plugins.jetbrains.com/plugin/13083-odoo-autocompletion-support