mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Only warn once about non-files being excluded from the repo map #281
This commit is contained in:
parent
4f9d778d09
commit
bf154b548e
1 changed files with 6 additions and 1 deletions
|
@ -76,6 +76,8 @@ class RepoMap:
|
||||||
|
|
||||||
cache_missing = False
|
cache_missing = False
|
||||||
|
|
||||||
|
warned_files = set()
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
map_tokens=1024,
|
map_tokens=1024,
|
||||||
|
@ -307,7 +309,10 @@ class RepoMap:
|
||||||
|
|
||||||
for fname in fnames:
|
for fname in fnames:
|
||||||
if not Path(fname).is_file():
|
if not Path(fname).is_file():
|
||||||
self.io.tool_error(f"Repo-map can't include {fname}")
|
if fname not in self.warned_files:
|
||||||
|
self.io.tool_error(f"Repo-map can't include {fname}")
|
||||||
|
|
||||||
|
self.warned_files.add(fname)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# dump(fname)
|
# dump(fname)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue