From a96d87814bdbb7b39613aef300794bf9fc630672 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 6 Dec 2024 12:15:45 -0800 Subject: [PATCH] fix: handle ValueError in TreeContext by including raw comments --- aider/watch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/watch.py b/aider/watch.py index a7a0d594b..878f6133a 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -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,