Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught RuntimeError in pathlib.py line 990 #2805

Open
hopewise opened this issue Jan 8, 2025 · 0 comments
Open

Uncaught RuntimeError in pathlib.py line 990 #2805

hopewise opened this issue Jan 8, 2025 · 0 comments

Comments

@hopewise
Copy link

hopewise commented Jan 8, 2025

Aider version: 0.70.0
Python version: 3.11.11
Platform: macOS-10.16-x86_64-i386-64bit
Python implementation: CPython
Virtual environment: No
OS: Darwin 23.5.0 (64bit)
Git version: git version 2.42.0

An uncaught exception occurred:

Traceback (most recent call last):
  File "pathlib.py", line 1003, in resolve
    p.stat()
  File "pathlib.py", line 1013, in stat
    return os.stat(self, follow_symlinks=follow_symlinks)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 62] Too many levels of symbolic links: '/Users/company/Documents/myapp/assets/stablexui/components'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 1007, in main
    coder.run()
  File "base_coder.py", line 806, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 853, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1220, in send_message
    chunks = self.format_messages()
             ^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1154, in format_messages
    chunks = self.format_chat_chunks()
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1101, in format_chat_chunks
    chunks.repo = self.get_repo_messages()
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 671, in get_repo_messages
    repo_content = self.get_repo_map()
                   ^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 638, in get_repo_map
    all_abs_files = set(self.get_all_abs_files())
                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1845, in get_all_abs_files
    files = [self.abs_root_path(path) for path in files]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1845, in <listcomp>
    files = [self.abs_root_path(path) for path in files]
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 510, in abs_root_path
    res = utils.safe_abs_path(res)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "utils.py", line 98, in safe_abs_path
    res = Path(res).resolve()
          ^^^^^^^^^^^^^^^^^^^
  File "pathlib.py", line 1005, in resolve
    check_eloop(e)
  File "pathlib.py", line 990, in check_eloop
    raise RuntimeError("Symlink loop from %r" % e.filename)
RuntimeError: Symlink loop from '/Users/company/Documents/myapp/assets/stablexui/components'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant