Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
20.94k stars 1.93k forks source link

Uncaught FileNotFoundError in <frozen posixpath> line 415 #1944

Closed Thrizian closed 2 weeks ago

Thrizian commented 2 weeks ago

Aider version: 0.59.0 Python version: 3.12.6 Platform: Linux-6.10.11-200.fc40.x86_64-x86_64-with-glibc2.39 Python implementation: CPython Virtual environment: No OS: Linux 6.10.11-200.fc40.x86_64 (64bit) Git version: git version 2.46.2

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 378, in main
    loaded_dotenvs = load_dotenv_files(git_root, args.env_file, args.encoding)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "main.py", line 270, in load_dotenv_files
    dotenv_files = generate_search_path_list(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "main.py", line 226, in generate_search_path_list
    files.append(default_file.resolve())
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "pathlib.py", line 1240, in resolve
    s = self._flavour.realpath(self, strict=strict)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen posixpath>", line 428, in realpath
  File "<frozen posixpath>", line 415, in abspath
FileNotFoundError: [Errno 2] No such file or directory
Thrizian commented 2 weeks ago

I feel like i have an idea where this might've gone wrong. I'm a ruby developer and figured i'd fix some feature requests using aider for an open source rubygem.

Aider works fine in my /home/danny/development/* folders, but it doesn't in: /home/danny/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/administrate-0.20.1

Any idea what might've caused this?