mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
fix: convert absolute paths to relative paths in file watcher
This commit is contained in:
parent
333e4aa362
commit
c3a9c05455
1 changed files with 3 additions and 2 deletions
|
@ -139,8 +139,9 @@ class FileWatcher:
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
dump(result)
|
dump(result)
|
||||||
if result:
|
if result:
|
||||||
# ai: they need to be rel_fnames!
|
# Convert to relative paths before updating
|
||||||
self.coder.abs_fnames.update(changed_files)
|
rel_files = {str(Path(f).relative_to(self.root)) for f in changed_files}
|
||||||
|
self.coder.abs_fnames.update(rel_files)
|
||||||
self.coder.io.interrupt_input()
|
self.coder.io.interrupt_input()
|
||||||
return
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue