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

Windows: Unexpected internal error near index 1 #10

Closed borisdamevin closed 2 years ago

borisdamevin commented 2 years ago

Plugin Version: 0.5.9 IDEA Version: PyCharm 2022.1 EAP

In file: file://C:/Projects/dockerize/source-back/iraiser_crm_segmentation/models/iraiser_segment.py ``` java.util.regex.PatternSyntaxException: Unexpected internal error near index 1 \ at java.base/java.util.regex.Pattern.error(Pattern.java:2027) ... at java.base/java.lang.String.split(String.java:2364) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.getModuleDirectory(OdooModuleServiceImpl.java:106) 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:38) at at.wtioit.intellij.plugins.odoo.pycharm.PyCharmOdooAddonsImportResolver.resolveImportReference(PyCharmOdooAddonsImportResolver.java:42) at com.jetbrains.python.psi.resolve.PyResolveImportUtil$foreignResults$1.invoke(PyResolveImportUtil.kt:199) ... at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ```
ap-wtioit commented 2 years ago

Thanks for reporting this. It seems that the plugin has not worked on Windows since 0.4.0 (my bad).

Could you please test if the bugfix here works:

Otherwise i would need to setup a Windows development environment and that may not happen before Tuesday.

ap-wtioit commented 2 years ago

Jetbrains just approved the plugin version 0.5.10. This should be fixed now.