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

Duplicate filepaths when trying to perform multifile edit #3517

Open
3 tasks
Patrick-Erichsen opened this issue Dec 23, 2024 · 0 comments
Open
3 tasks

Duplicate filepaths when trying to perform multifile edit #3517

Patrick-Erichsen opened this issue Dec 23, 2024 · 0 comments
Assignees
Labels
area:edit Relates to side panel Edit feature area:inline-edit Relates to the auto refactor feature kind:bug Indicates an unexpected problem or unintended behavior

Comments

@Patrick-Erichsen
Copy link
Collaborator

Before submitting your bug report

Relevant environment info

- Continue version: > 0.9.246

Description

When attempting to perform a multifile edit the path URIs are incorrect, for example:

Users/patrickerichsen/Documents/Git/continue-dev/continue/manual-testing-sandbox/Users/patrickerichsen/Documents/Git/continue-dev/continue/manual-testing-sandbox/test.js.

The root of the bug appears to be in inferResolvedUriFromRelativePath here: https://github.com/continuedev/continue/blob/main/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx#L97-L100

Placing a log above that line, props.relativeFilepath appears to be correct, but logging fileUri shows the incorrect URI.

To reproduce

  1. Open a file, e.g. manual-testing-sandbox/test.js
  2. Cmd + Shft + I to enter edit mode
  3. Add another file
  4. Submit a prompt like "Add comments"
  5. Verify that when the auto-apply happens, it's to the incorrect locatino

Log output

No response

@dosubot dosubot bot added area:inline-edit Relates to the auto refactor feature kind:bug Indicates an unexpected problem or unintended behavior labels Dec 23, 2024
@Patrick-Erichsen Patrick-Erichsen added the area:edit Relates to side panel Edit feature label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:edit Relates to side panel Edit feature area:inline-edit Relates to the auto refactor feature kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants