From f26e40d48ec0f37b02b7991c3d1ccc7826b1faa1 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 8 Aug 2023 12:02:40 -0300 Subject: [PATCH] Skip non-files when building repomap #174 --- aider/repomap.py | 4 ++++ hello.py | 0 2 files changed, 4 insertions(+) create mode 100644 hello.py diff --git a/aider/repomap.py b/aider/repomap.py index defc4ed4b..5f9ae3a8a 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -307,6 +307,10 @@ class RepoMap: self.cache_missing = False for fname in fnames: + if not Path(fname).is_file(): + self.io.tool_error(f"Repo-map can't include {fname}") + continue + # dump(fname) rel_fname = os.path.relpath(fname, self.root) diff --git a/hello.py b/hello.py new file mode 100644 index 000000000..e69de29bb