From f198c4a69102d1e46605060d7ef33e70c3f88cf6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 20 Aug 2024 16:23:06 -0700 Subject: [PATCH] fix: Add debug logging to EditBlockCoder --- aider/coders/editblock_coder.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider/coders/editblock_coder.py b/aider/coders/editblock_coder.py index 0958533e4..f05a60c4d 100644 --- a/aider/coders/editblock_coder.py +++ b/aider/coders/editblock_coder.py @@ -24,6 +24,8 @@ class EditBlockCoder(Coder): # might raise ValueError for malformed ORIG/UPD blocks edits = list(find_original_update_blocks(content, self.fence)) + dump(edits) + return edits def apply_edits(self, edits): @@ -417,6 +419,7 @@ def find_original_update_blocks(content, fence=DEFAULT_FENCE): try: while pieces: cur = pieces.pop() + dump(repr(cur)) # Check for various shell code blocks shell_starts = [