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

Nullpointer when trying to parse manifest file #129

Closed Putukresna365 closed 1 year ago

Putukresna365 commented 1 year ago

Plugin Version: 0.6.9 IntelliJ Version: PyCharm 2022.2.4 IntelliJ Build: PC-222.4459.20

java.lang.NullPointerException: Cannot invoke "com.intellij.psi.PsiFile.getProject()" because "manifestFile" is null ``` java.lang.NullPointerException: Cannot invoke "com.intellij.psi.PsiFile.getProject()" because "manifestFile" is null at at.wtioit.intellij.plugins.odoo.modules.impl.OdooManifestParser.parse(OdooManifestParser.java:26) at at.wtioit.intellij.plugins.odoo.modules.index.OdooDeserializedModuleImpl.getDependencies(OdooDeserializedModuleImpl.java:83) at at.wtioit.intellij.plugins.odoo.modules.impl.AbstractOdooModuleImpl.dependsOn(AbstractOdooModuleImpl.java:62) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$getRecord$1(OdooRecordServiceImpl.java:61) at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:15) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.getRecord(OdooRecordServiceImpl.java:53) at at.wtioit.intellij.plugins.odoo.AbstractOdooCompletionContributor.suggestRecordXmlId(AbstractOdooCompletionContributor.java:117) at at.wtioit.intellij.plugins.odoo.OdooXmlCompletionContributor.fillCompletionVariants(OdooXmlCompletionContributor.java:22) at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:76) ... at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:297) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ... at java.base/java.lang.Thread.run(Thread.java:833) ```
Putukresna365 commented 1 year ago

error

bigbear3001 commented 1 year ago

this is fixed with 0.6.11 (pending jetbrains approval) 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.11

same as #115

ap-wtioit commented 1 year ago

0.6.11 is now available in the marketplace