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

Fix uncaught ValueError in <frozen ntpath> line 783 #2161

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PierrunoYT
Copy link

@PierrunoYT PierrunoYT commented Oct 26, 2024

Fixes #2136

Fix ValueError related to path mounts in get_input methods.

  • Modify get_input method in aider/io.py to handle different drive paths by using os.path.abspath instead of os.path.relpath.
  • Add get_rel_fname method in aider/io.py to handle different drive paths.
  • Modify get_rel_fname method in aider/coders/base_coder.py to use os.path.abspath instead of os.path.relpath for different drive paths.

For more details, open the Copilot Workspace session.

Fixes Aider-AI#2136

Fix ValueError related to path mounts in `get_input` methods.

* Modify `get_input` method in `aider/io.py` to handle different drive paths by using `os.path.abspath` instead of `os.path.relpath`.
* Add `get_rel_fname` method in `aider/io.py` to handle different drive paths.
* Modify `get_rel_fname` method in `aider/coders/base_coder.py` to use `os.path.abspath` instead of `os.path.relpath` for different drive paths.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Aider-AI/aider/issues/2136?shareId=XXXX-XXXX-XXXX-XXXX).
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

Successfully merging this pull request may close these issues.

Uncaught ValueError in <frozen ntpath> line 783
1 participant