Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Git
byHi Daniel,
thanks for you reply. Yes i am using it directly on windows. I am just curious about what happened, as it was working flawlessly. Kind of weird.
Temporarily i will switch back on my mac… but i want to get this running on the new system.
I´ll have a look tot he WSL2 Ubuntu environment. Thank you!
All the best
Nils
--
NICO SOLUTIONS - ENGINEERING & IT
Dr.-Ruckert-Str. 1G
28865 Lilienthal
Deutschland (Germany)
Von: Daniel Reis <notifications@odoo-community.org>
Antworten an: "Odoo Community Association (OCA) Contributors" <contributors@odoo-community.org>
Datum: Mittwoch, 12. Juli 2023 um 15:22
An: Contributors <contributors@odoo-community.org>
Betreff: Re: Git
It seems that you are using Git directly under Windows.
My recommendation would be to instead use Git inside a WSL2 Ubuntu environment.
Thanks
Daniel
On 12/07/2023 13:47, nils.coenen wrote:
Dear Contributors,
i know… this topic maybe don´t belong here… But i´ll give it a try… I do have the following problem:
Switched from mac to a Win PC a while ago with my dev enviroment. Everything was working great and the performance boost is quite addictive ;P
But something happened now and i dont know what exactly.
So here is my bottleneck right now. For some reason (which i dont know) i am not able to patch the code anymore when migrating a module.
So the format patch…
„git format-patch --keep-subject --stdout origin/16.0..origin/15.0 -- MODULE | git am -3 –keep“
… will not apply and i get the following error:
fatal: empty ident name (for <>) not allowed
Applying: From 9db567da369584bfa55d85bb9e42f167ae4135ea Mon Sep 17 00:00:00 2001
So the git am got stuck and when i look at the author-script in the rebase-apply folder, there is nothing for GIT_AUTHOR_NAME='', GIT_AUTHOR_EMAIL='', GIT_AUTHOR_DATE=''
I already set the name and email in gitconfig (local & global) with git config --global user.name "NAME" & with git config --global user.email "EMAIL" but the behaviour is the same.
In addition, i dont know where it gets this line from: From 9db567da369584bfa55d85bb9e42f167ae4135ea Mon Sep 17 00:00:00 2001
When i enter the name and email in the author script file and continue the am… -> Applying: From 9db567da369584bfa55d85bb9e42f167ae4135ea Mon Sep 17 00:00:00 2001
But i guess the reference is totally wrong!
Has anybody an idea, what happens here and why it doesnt pull the name & Email properly?
I addition the pre-commit makes trouble as well.
Generate the default setup.py for an addons directory fails with the error:
- hook id: setuptools-odoo-make-default
- exit code:
Traceback (most recent call last):
File "c:\users\my_user\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\my_user\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\ my_user \.cache\pre-commit\reposb6fkp7c\py_env-python3\Scripts\setuptools-odoo-make-default.EXE\__main__.py", line 7, in <module>
File "C:\Users\ my_user \.cache\pre-commit\reposb6fkp7c\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 402, in main
make_default_setup_addons_dir(
File "C:\Users\ my_user \.cache\pre-commit\reposb6fkp7c\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 152, in make_default_setup_addons_dir
make_default_setup_addon(
File "C:\Users\ my_user \.cache\pre-commit\reposb6fkp7c\py_env-python3\lib\site-packages\setuptools_odoo\make_default_setup.py", line 122, in make_default_setup_addon
os.symlink(os.path.relpath(addon_dir, odoo_addons_path), link_path)
OSError: [WinError 1314] Dem Client fehlt ein erforderliches Recht: '..\\..\\..\\..\\MODULE' -> '.\\setup\\MODULE\\odoo\\addons\\MODULE'
So i guess there is eaither a problem with symlink (if necessary), access rights on my local drive or Visual Studio Issue. Futhermore i get:
************* Module MODULE
MODULE\views\file1.xml:1: [W7930(file-not-used), ] not used from manifest
MODULE\views\file2.xml:1: [W7930(file-not-used), ] not used from manifest
************* Module MODULE
And some further files listed that dont really exist n the format-pached files….
Already checked a lot of infos from the web, but nothing worked out.
Is anybody aware of whats going on here or rather can help me to sort this out?
I wanted to give it a try this way, before performing more and more tests or before decide to use my old enviroment and setup the new system from scratch.
Any helpful hint is much appreciated
All the best
Nils
--
NICO SOLUTIONS - ENGINEERING & IT
Dr.-Ruckert-Str. 1G
28865 Lilienthal
Deutschland (Germany)_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--
DANIEL REIS
MANAGING PARTNER
M: +351 919 991 307
E: dreis@OpenSourceIntegrators.com
A: Avenida da República 3000, Estoril Office B, 3º Escr.34, 2649-517 Cascais
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe