diff --git a/aider/coders/editblock_coder.py b/aider/coders/editblock_coder.py index 4a5c75ede..67d217d98 100644 --- a/aider/coders/editblock_coder.py +++ b/aider/coders/editblock_coder.py @@ -53,6 +53,12 @@ class EditBlockCoder(Coder): res = f"# {len(failed)} SEARCH/REPLACE {blocks} failed to match!\n" for edit in failed: path, original, updated = edit + + full_path = self.abs_root_path(path) + content = self.io.read_text(full_path) + + did_you_mean = find_similar_lines(original, content) + res += f""" ## SearchReplaceNoExactMatch: This SEARCH block failed to exactly match lines in {path} <<<<<<< SEARCH