odoo-ide / vscode-odoo

Visual Studio Code extension for Odoo
https://marketplace.visualstudio.com/items?itemName=trinhanhngoc.vscode-odoo
39 stars 2 forks source link

Vscode is invalid in XML reference field #82

Closed yao-big closed 1 week ago

yao-big commented 1 week ago

I seem to have found a bug. This plugin imports into Odoo correctly on the backend. For example, when I use , according to the operation guide, fields starting with "m" should appear, but they do not. Adding a group to the field also does not make it appear. Importing it in JavaScript also fails. My operating system is Mac M2, and the Odoo version I am using is Odoo 16.

yao-big commented 1 week ago

I noticed that it seems to only work for Python files, and not for other files. How should I configure this? Could it be because my operating system is ARM?

trinhanhngoc commented 1 week ago

@yao-big ,

Can you provide screenshots of the problem?

yao-big commented 1 week ago

OK的 , image There is no prompt here

There is no prompt here Because I think the introduction is acceptable

yao-big commented 1 week ago

image

This is your introduction It looks like it's possible

trinhanhngoc commented 1 week ago

@yao-big ,

Do you mean code completion does not work when typing field names?

yao-big commented 1 week ago

yes

trinhanhngoc commented 1 week ago

@yao-big ,

Have you tried manually triggering code completion by Control + Space? Does it work?

yao-big commented 1 week ago

"I just tried using the shortcut keys, and it works. Can't it come up automatically?"

trinhanhngoc commented 1 week ago

@yao-big ,

To trigger code completion automatically when typing in strings, you need to tweak editor.quickSuggestions setting.

image
yao-big commented 1 week ago

Okay, that's it. Thank you very much

yao-big commented 1 week ago

I have noticed that recently this plugin has been using a lot of CPU resources. This should be a bug, right? @trinhanhngoc

yao-big commented 1 week ago
image
trinhanhngoc commented 1 week ago

@yao-big ,

Look at your screenshot, I don't see any CPU consumption issues. CPU% value is zero.

yao-big commented 1 week ago

No, he sometimes takes up a lot of CPU

trinhanhngoc commented 1 week ago

@yao-big ,

I tested with large files (eg account/models/account_move.py) and don't see any CPU performance issues on Macbook Pro M1. CPU usage is only high in about 1 second after editing files because the extension needs to re-analyse files.

yao-big commented 1 week ago

When will this problem be solved? Release new version updates?

yao-big commented 1 week ago

@trinhanhngoc

trinhanhngoc commented 1 week ago

@yao-big ,

I tested with large files (eg account/models/account_move.py) and don't see any CPU performance issues on Macbook Pro M1. CPU usage is only high in about 1 second after editing files because the extension needs to re-analyse files.

@yao-big ,

As I said, I consider this behaviour to be normal. So there is no fix.