aider icon indicating copy to clipboard operation
aider copied to clipboard

Uncaught IsADirectoryError in pathlib.py line 1117

Open artimath opened this issue 5 months ago • 1 comments

Aider version: 0.56.0 Python version: 3.10.1 Platform: macOS-14.5-arm64-arm-64bit Python implementation: CPython Virtual environment: Yes OS: Darwin 23.5.0 (64bit) Git version: git version 2.46.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
  File "main.py", line 698, in main
    coder.run()
  File "base_coder.py", line 735, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 778, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1213, in send_message
    lint_errors = self.lint_edited(edited)
  File "base_coder.py", line 1307, in lint_edited
    errors = self.linter.lint(self.abs_root_path(fname))
  File "linter.py", line 86, in lint
    code = Path(fname).read_text(encoding=self.encoding, errors="replace")
  File "pathlib.py", line 1132, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors) as f:
  File "pathlib.py", line 1117, in open
    return self._accessor.open(self, mode, buffering, encoding, errors,
IsADirectoryError: [Errno 21] Is a directory: '/Users/ryanhunter/new_era/veils-hub/src/features/universalInbox/FEATURE+USECASES.md'

artimath avatar Sep 13 '24 12:09 artimath