Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Git
byDear 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)