Skip to content

[RFC] Allow to import editable path #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rousseldenis opened this issue Mar 19, 2025 · 3 comments
Open

[RFC] Allow to import editable path #98

rousseldenis opened this issue Mar 19, 2025 · 3 comments

Comments

@rousseldenis
Copy link

It seems that editable addons (pip install -e <path>) are not recognized.

@trinhanhngoc
Copy link
Member

Hello @rousseldenis ,

The Odoo IDE extension is built on top of Pyright. You can refer to the Pyright documentation about editable installs: https://microsoft.github.io/pyright/#/import-resolution?id=editable-installs. You can also manually add addons paths to the python.analysis.extraPaths setting.

@rousseldenis
Copy link
Author

rousseldenis commented Mar 25, 2025

Hello @rousseldenis ,

The Odoo IDE extension is built on top of Pyright. You can refer to the Pyright documentation about editable installs: https://microsoft.github.io/pyright/#/import-resolution?id=editable-installs. You can also manually add addons paths to the python.analysis.extraPaths setting.

Yes, but the option is not available if I install just your extension...

Image

@trinhanhngoc
Copy link
Member

Hello @rousseldenis ,

I think the setting still works even if it's marked as unknown. Anyway, I will add the missing settings in the next versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants