Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
20.96k stars 1.94k forks source link

Uncaught ValueError in base_coder.py line 156 #1835

Open calmren opened 3 weeks ago

calmren commented 3 weeks ago

Aider version: 0.58.0 Python version: 3.12.4 Platform: Windows-11-10.0.22631-SP0 Python implementation: CPython Virtual environment: No OS: Windows 11 (64bit) Git version: git version 2.46.2.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 727, in main
    coder.run()
  File "base_coder.py", line 730, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 773, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1201, in send_message
    self.reply_completed()
  File "architect_coder.py", line 32, in reply_completed
    editor_coder = Coder.create(**new_kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 156, in create
    raise ValueError(f"Unknown edit format {edit_format}")
ValueError: Unknown edit format whole-file
fry69 commented 3 weeks ago

Thank you for filing this issue.

This error should be handled more gracefully. The allowed values for edit formats are whole and diff (there are more, but those are experimental, avoid them for now).