mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: handle ValueError in TreeContext by including raw comments
This commit is contained in:
parent
2a3eefc5be
commit
a96d87814b
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue