Skip to content

Uncaught error in fun.py line 263 #5061

@AppelsZijnCool

Description

@AppelsZijnCool

Aider version: 0.86.2
Python version: 3.12.8
Platform: Linux-6.17.7-ba29.fc43.x86_64-x86_64-with-glibc2.42
Python implementation: CPython
Virtual environment: Yes
OS: Linux 6.17.7-ba29.fc43.x86_64 (64bit)
Git version: git version 2.53.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 925, in main
    if not sanity_check_repo(repo, io):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "main.py", line 422, in sanity_check_repo
    repo.get_tracked_files()
  File "repo.py", line 481, in get_tracked_files
    staged_files = [path for path, _ in index.entries.keys()]
                                        ^^^^^^^^^^^^^
  File "util.py", line 253, in __getattr__
    self._set_cache_(attr)
  File "base.py", line 168, in _set_cache_
    self._deserialize(stream)
  File "base.py", line 197, in _deserialize
    self.version, self.entries, self._extension_data, _conten_sha = read_cache(stream)
                                                                    ^^^^^^^^^^^^^^^^^^
  File "fun.py", line 263, in read_cache
    ctime = unpack(">8s", read(8))[0]
            ^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 8 bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions