Skip to content
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

gita super diff not working #273

Open
mhagnumdw opened this issue May 8, 2024 · 2 comments
Open

gita super diff not working #273

mhagnumdw opened this issue May 8, 2024 · 2 comments

Comments

@mhagnumdw
Copy link

gita super diff not working. But gita super diff --name-status works fine.

Error

$ gita super diff                   
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/mhagnumdw/.local/lib/python3.12/site-packages/gita/__main__.py", line 825, in <module>
    main()  # pragma: no cover
    ^^^^^^
  File "/home/mhagnumdw/.local/lib/python3.12/site-packages/gita/__main__.py", line 819, in main
    args.func(args)
  File "/home/mhagnumdw/.local/lib/python3.12/site-packages/gita/__main__.py", line 423, in f_super
    f_git_cmd(args)
  File "/home/mhagnumdw/.local/lib/python3.12/site-packages/gita/__main__.py", line 375, in f_git_cmd
    errors = utils.exec_async_tasks(
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mhagnumdw/.local/lib/python3.12/site-packages/gita/utils.py", line 422, in exec_async_tasks
    errors = loop.run_until_complete(asyncio.gather(*tasks))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/mhagnumdw/.local/lib/python3.12/site-packages/gita/utils.py", line 396, in run_async
    print(format_output(pipe.decode(), repo_name))
                        ^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc7 in position 1166: invalid continuation byte
Exception ignored in: <function BaseSubprocessTransport.__del__ at 0x7fe62497a7a0>
Traceback (most recent call last):
  File "/usr/lib64/python3.12/asyncio/base_subprocess.py", line 126, in __del__
  File "/usr/lib64/python3.12/asyncio/base_subprocess.py", line 104, in close
  File "/usr/lib64/python3.12/asyncio/unix_events.py", line 568, in close
  File "/usr/lib64/python3.12/asyncio/unix_events.py", line 592, in _close
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 795, in call_soon
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 541, in _check_closed
RuntimeError: Event loop is closed

Versions

  • gita 0.16.6.6
  • Python 3.12.3
  • Fedora Linux 40 (Workstation Edition) x86_64
@nosarthur
Copy link
Owner

it seems to work on my laptop; is it because your output has unicode characters?

@mhagnumdw
Copy link
Author

Hi @nosarthur ,

it seems to work on my laptop; is it because your output has unicode characters?

Yes.

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc7 in position 1166: invalid continuation byte

image

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 112785: invalid continuation byte

image

Note: if you run specifying a single repository, something like gita super repo1 log --patch, the problem does not occur. If you specify more than one or specify none, the problem occurs.

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