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

🤖 GitHub Bot: Rich markup error and git diff issues #256

Open
Sunwood-ai-labs opened this issue Nov 15, 2024 · 2 comments
Open

🤖 GitHub Bot: Rich markup error and git diff issues #256

Sunwood-ai-labs opened this issue Nov 15, 2024 · 2 comments

Comments

@Sunwood-ai-labs
Copy link

Current Behavior

Currently experiencing two main errors when running the GitHub Bot:

  1. Rich markup error:
ERROR:gptme.message:Error printing message
Traceback (most recent call last):
  File "/workspace/gptme/message.py", line 313, in print_msg
    console.print(s)
  File "/usr/local/lib/python3.10/site-packages/rich/console.py", line 1679, in print
    renderables = self._collect_renderables(
  File "/usr/local/lib/python3.10/site-packages/rich/console.py", line 1539, in _collect_renderables
    self.render_str(
  File "/usr/local/lib/python3.10/site-packages/rich/console.py", line 1429, in render_str
    rich_text = render_markup(
  File "/usr/local/lib/python3.10/site-packages/rich/markup.py", line 167, in render
    raise MarkupError(
rich.errors.MarkupError: closing tag '[/<m>]' at position 3246 doesn't match any open tag
  1. Git diff command error:
error: unknown option `cached'
usage: git diff --no-index [<options>] <path> <path>

image

@ErikBjare
Copy link
Owner

ErikBjare commented Nov 15, 2024

The error appears when it tries to run git diff --cached outside of a git repo.

Can you give some more information about the setup you are using?

@Sunwood-ai-labs
Copy link
Author

@ErikBjare Thank you for checking.

I am currently using the following GitHub Actions configurations:

Note that I have modified some parts of action.yml due to permission-related errors.

This is the setup where the git diff error you mentioned is occurring.

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