From 55fcbc958df569ccebea157fba505ff7f37ed293 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 5 Aug 2024 15:35:02 -0300 Subject: [PATCH] fix: Add debug logging to get_ident_filename_matches method --- aider/coders/base_coder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index baf95dced..b89012006 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -489,18 +489,23 @@ class Coder: return words def get_ident_filename_matches(self, idents): + dump(idents) + all_fnames = defaultdict(set) for fname in self.get_all_relative_files(): base = Path(fname).with_suffix("").name.lower() if len(base) >= 5: all_fnames[base].add(fname) + dump(len(all_fnames)) + matches = set() for ident in idents: if len(ident) < 5: continue matches.update(all_fnames[ident.lower()]) + dump(matches) return matches def get_repo_map(self):