odoo-ide / pycharm-odoo

PyCharm plugin for Odoo
https://plugins.jetbrains.com/plugin/13499-odoo
Other
44 stars 5 forks source link

Cannot resolve symbol on new model #419

Closed dorcyv closed 11 months ago

dorcyv commented 11 months ago

When we create a new model, the plugin does not reconsize it.

image image

trinhanhngoc commented 11 months ago

Hello @dorcyv , What Odoo plugin version are you using?

dorcyv commented 11 months ago

Hi @trinhanhngoc The last one image

PyCharm 2023.2.2 (Professional Edition) Build #PY-232.9921.89, built on October 1, 2023 Runtime version: 17.0.8+7-b1000.22 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 14.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8 Metal Rendering is ON Registry: debugger.new.tool.window.layout=true ide.experimental.ui=true

Non-Bundled Plugins: com.github.copilot (1.3.1.3453) com.intellij.ml.llm (232.9826) dev.ngocta.pycharm-odoo (2023.9.2.232)

trinhanhngoc commented 11 months ago

@dorcyv , I just tested again. Everything is still working as expected.

image

Assuming this problem is related to invalid caches, does the problem still exist after editing any __manifest__.py files?

dorcyv commented 11 months ago

Yes, the manifest and init.py files are up to date. After a moment however, the plugin seems to reconize the new model. Also, if I invalidate the cache and restart Pycharm, the new model is also reconize

dorcyv commented 11 months ago

Once the plugin recognized it, I renamed the model and no problems.

I have the same issue on a Linux desktop (last version too).

trinhanhngoc commented 11 months ago

There is a similar issue (https://github.com/odoo-ide/pycharm-odoo/issues/338). However, I fixed it in the version 2023.3.3.

trinhanhngoc commented 11 months ago

Hello @dorcyv ,

I just discovered a stupid bug related to caching that caused this problem. The fix will be released this week.

dorcyv commented 11 months ago

Nice ! Thanks 😁

trinhanhngoc commented 11 months ago

Hello @dorcyv ,

The new version 2023.9.4 has been released with the fix.