mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
fix: Add debug logging to EditBlockCoder
This commit is contained in:
parent
574efcd35d
commit
f198c4a691
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,8 @@ class EditBlockCoder(Coder):
|
||||||
# might raise ValueError for malformed ORIG/UPD blocks
|
# might raise ValueError for malformed ORIG/UPD blocks
|
||||||
edits = list(find_original_update_blocks(content, self.fence))
|
edits = list(find_original_update_blocks(content, self.fence))
|
||||||
|
|
||||||
|
dump(edits)
|
||||||
|
|
||||||
return edits
|
return edits
|
||||||
|
|
||||||
def apply_edits(self, edits):
|
def apply_edits(self, edits):
|
||||||
|
@ -417,6 +419,7 @@ def find_original_update_blocks(content, fence=DEFAULT_FENCE):
|
||||||
try:
|
try:
|
||||||
while pieces:
|
while pieces:
|
||||||
cur = pieces.pop()
|
cur = pieces.pop()
|
||||||
|
dump(repr(cur))
|
||||||
|
|
||||||
# Check for various shell code blocks
|
# Check for various shell code blocks
|
||||||
shell_starts = [
|
shell_starts = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue