mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
aider: Updated Coder
class in aider/coder.py
to call the new get_input
function with root
parameter and rel_fnames
instead of absolute file names.
# Context: USER: update coder.py to call the new get_input ASSISTANT: I will update the `Coder` class in the `aider/coder.py` file to call the new `get_input` function. ```python aider/coder.py <<<<<<< ORIGINAL inp = self.io.get_input(self.abs_fnames, self.commands) ======= rel_fnames = [os.path.relpath(fname, self.root) for fname in self.abs_fnames] inp = self.io.get_input(self.root, rel_fnames, self.commands) >>>>>>> UPDATED ``` This change updates the `run_loop` method in the `Coder` class to call the new `get_input` function with the `root` parameter and the `rel_fnames` instead of the absolute file names.
This commit is contained in:
parent
487040203e
commit
4bc4e6f611
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,8 @@ class Coder:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def run_loop(self):
|
def run_loop(self):
|
||||||
inp = self.io.get_input(self.abs_fnames, self.commands)
|
rel_fnames = [os.path.relpath(fname, self.root) for fname in self.abs_fnames]
|
||||||
|
inp = self.io.get_input(self.root, rel_fnames, self.commands)
|
||||||
|
|
||||||
self.num_control_c = 0
|
self.num_control_c = 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue