From cd30e531be612e6fb5f78b518701170f199725b7 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 19 Oct 2023 10:09:16 -0700 Subject: [PATCH] better warnings on files that are missing or not normal --- aider/repomap.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aider/repomap.py b/aider/repomap.py index 363992af4..0c55724d7 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -310,7 +310,12 @@ class RepoMap: for fname in fnames: if not Path(fname).is_file(): if fname not in self.warned_files: - self.io.tool_error(f"Repo-map can't include {fname}") + if Path(fname).exists(): + self.io.tool_error( + f"Repo-map can't include {fname}, it is not a normal file" + ) + else: + self.io.tool_error(f"Repo-map can't include {fname}, it no longer exists") self.warned_files.add(fname) continue