diff --git a/HISTORY.md b/HISTORY.md index 522c5a5b2..2af9b0e8e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -7,6 +7,7 @@ - Vocally refuse to add files to the chat that match `.aiderignore` - Prevents bug where subsequent git commit of those files will fail. - Added `--openai-organization-id` argument. +- Show the user a FAQ link if edits fail to apply. - Made past articles part of https://aider.chat/blog/ ### v0.24.1 diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index e4a419f41..8834822b8 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -946,10 +946,12 @@ class Coder: self.apply_update_errors += 1 if self.apply_update_errors < self.max_apply_update_errors: self.io.tool_error(f"Malformed response #{self.apply_update_errors}, retrying...") + self.io.tool_error("https://aider.chat/docs/faq.html#aider-isnt-editing-my-files") self.io.tool_error(str(err)) return None, err else: self.io.tool_error(f"Malformed response #{self.apply_update_errors}, aborting.") + self.io.tool_error("https://aider.chat/docs/faq.html#aider-isnt-editing-my-files") self.io.tool_error(str(err)) return False, None diff --git a/docs/faq.md b/docs/faq.md index d7aa1605c..5ebc654fc 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -166,6 +166,7 @@ introduced. But sometimes GPT just won't cooperate. In these cases, here are some things you might try: + - Try the older GPT-4 model `gpt-4-0613` not GPT-4 Turbo by running `aider --model gpt-4-0613`. - Use `/drop` to remove files from the chat session which aren't needed for the task at hand. This will reduce distractions and may help GPT produce properly formatted edits. - Use `/clear` to remove the conversation history, again to help GPT focus.