diff --git a/aider/io.py b/aider/io.py index 556283af4..a65130ba4 100644 --- a/aider/io.py +++ b/aider/io.py @@ -381,10 +381,10 @@ class InputOutput: watcher.start() dump(watcher) - try: - rel_fnames = list(rel_fnames) - show = "" - if rel_fnames: + + rel_fnames = list(rel_fnames) + show = "" + if rel_fnames: rel_read_only_fnames = [ get_rel_fname(fname, root) for fname in (abs_read_only_fnames or []) ] diff --git a/aider/watch.py b/aider/watch.py index 744614a40..6e756a0ee 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -73,6 +73,8 @@ def watch_source_files( and returns True if it should be ignored """ root = Path(directory) + dump(root) + gitignore_paths = [Path(g) for g in gitignores] if gitignores else [] gitignore_spec = load_gitignores(gitignore_paths) root_abs = root.absolute()