Skip to content

Uncaught MissingStyle when choosing 'A' when prompted to add many files to the chat #2962

Open
@ghassentheben

Description

@ghassentheben

Aider version: 0.72.1
Python version: 3.12.8
Platform: macOS-15.2-arm64-arm-64bit
Python implementation: CPython
Virtual environment: Yes
OS: Darwin 24.2.0 (64bit)
Git version: git version 2.39.5 (Apple Git-154)

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 1037, in main
    coder.run()
  File "base_coder.py", line 823, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 870, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1348, in send_message
    add_rel_files_message = self.check_for_file_mentions(content)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1545, in check_for_file_mentions
    if self.io.confirm_ask(f"Add {rel_fname} to the chat?", group=group, allow_never=True):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "io.py", line 727, in confirm_ask
    self.user_input(f"{question}{res}", log_only=False)
  File "io.py", line 636, in user_input
    self.display_user_input(inp)
  File "io.py", line 632, in display_user_input
    self.console.print(Text(inp), **style)
  File "console.py", line 1710, in print
    render(renderable, render_options), self.get_style(style)
                                        ^^^^^^^^^^^^^^^^^^^^^
  File "console.py", line 1483, in get_style
    raise errors.MissingStyle(
rich.errors.MissingStyle: Failed to get style 'ansigray'; unable to parse 'ansigray' as color; 'ansigray' is not a valid color

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions