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:
Paul Gauthier 2023-05-27 08:47:21 -07:00
parent 487040203e
commit 4bc4e6f611

View file

@ -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