aider icon indicating copy to clipboard operation
aider copied to clipboard

Clipboard command breaks when using in a project in D:/

Open rlucasfm opened this issue 2 years ago • 2 comments

I was trying to use the /clipboard command. My project is running in D:/

Aider version: 0.55.0 Python version: 3.12.3 Platform: Windows-10-10.0.19045-SP0 Python implementation: CPython Virtual environment: No OS: Windows 10 (64bit) Git version: git version 2.31.1.windows.1

An uncaught exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "__main__.py", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 694, in main
    coder.run()
  File "base_coder.py", line 729, in run
    user_message = self.get_input()
                   ^^^^^^^^^^^^^^^^
  File "base_coder.py", line 738, in get_input
    inchat_files = self.get_inchat_relative_files()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1630, in get_inchat_relative_files
    files = [self.get_rel_fname(fname) for fname in self.abs_fnames]
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1627, in get_rel_fname
    return os.path.relpath(fname, self.root)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen ntpath>", line 791, in relpath
ValueError: path is on mount 'C:', start on mount 'D:'

rlucasfm avatar Sep 17 '24 12:09 rlucasfm

Thank you for filing this issue.

The fix is available in the main branch. You can get it by installing the latest version from GitHub:

aider --install-main-branch

# or.

python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, please report if it works better for you.

fry69 avatar Sep 17 '24 13:09 fry69

I'm going to close this issue for now, but feel free to add a comment here and I will re-open. Or feel free to file a new issue any time.

paul-gauthier avatar Sep 20 '24 19:09 paul-gauthier