fix: handle ValueError in TreeContext by including raw comments

This commit is contained in:
Paul Gauthier 2024-12-06 12:15:45 -08:00 committed by Paul Gauthier (aider)
parent 2a3eefc5be
commit a96d87814b

View file

@ -195,6 +195,7 @@ Be sure to remove all these "AI" comments from the code!
# Convert comment line numbers to line indices (0-based)
lois = [ln - 1 for ln, _ in zip(line_nums, comments) if ln > 0]
# Handle ValueError from TreeContext and just include the actual comments instead. ai!
context = TreeContext(
rel_fname,
code,