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

Uncaught ColorParseError in color.py line 451 #2861

Open
luoxiangyu02 opened this issue Jan 14, 2025 · 0 comments
Open

Uncaught ColorParseError in color.py line 451 #2861

luoxiangyu02 opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@luoxiangyu02
Copy link

Aider version: 0.71.1
Python version: 3.12.3
Platform: Windows-10-10.0.18363-SP0
Python implementation: CPython
Virtual environment: No
OS: Windows 10 (64bit)
Git version: git version 2.47.1.windows.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "__main__.py", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 923, in main
    coder.show_announcements()
  File "base_coder.py", line 497, in show_announcements
    self.io.tool_output(line, bold=bold)
  File "io.py", line 851, in tool_output
    style = RichStyle(**style)
            ^^^^^^^^^^^^^^^^^^
  File "style.py", line 149, in __init__
    self._color = None if color is None else _make_color(color)
                                             ^^^^^^^^^^^^^^^^^^
  File "style.py", line 147, in _make_color
    return color if isinstance(color, Color) else Color.parse(color)
                                                  ^^^^^^^^^^^^^^^^^^
  File "color.py", line 451, in parse
    raise ColorParseError(f"{original_color!r} is not a valid color")
rich.color.ColorParseError: 'FFA500' is not a valid color

@paul-gauthier paul-gauthier added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants