fix: Add debug logging to EditBlockCoder

This commit is contained in:
Paul Gauthier 2024-08-20 16:23:06 -07:00 committed by Paul Gauthier (aider)
parent 574efcd35d
commit f198c4a691

View file

@ -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 = [