Skip to content

Uncaught TypeError in pathlib.py line 373 #4971

@BeyonderLimit

Description

@BeyonderLimit

Aider version: 0.86.2
Python version: 3.12.13
Platform: Linux-6.12.73+deb12-amd64-x86_64-with-glibc2.36
Python implementation: CPython
Virtual environment: Yes
OS: Linux 6.12.73+deb12-amd64 (64bit)
Git version: git version 2.39.5

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 906, in main
    repo = GitRepo(
           ^^^^^^^^
  File "repo.py", line 126, in __init__
    self.root = utils.safe_abs_path(self.repo.working_tree_dir)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "utils.py", line 98, in safe_abs_path
    res = Path(res).resolve()
          ^^^^^^^^^
  File "pathlib.py", line 1162, in __init__
    super().__init__(*args)
  File "pathlib.py", line 373, in __init__
    raise TypeError(
TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions