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

Cody puts files into wrong folders in multi-folder workspaces #6315

Open
DzmitrySudnik opened this issue Dec 11, 2024 · 3 comments
Open

Cody puts files into wrong folders in multi-folder workspaces #6315

DzmitrySudnik opened this issue Dec 11, 2024 · 3 comments
Assignees
Labels
bug Something isn't working repo/cody

Comments

@DzmitrySudnik
Copy link

Version

v1.48.1

Describe the bug

When I work in a workspace with multiple folders and ask Cody to apply changes to the file in not the first folder it creates new files under the first folder instead of modifying existing ones.

Expected behavior

Cody updates files you are working in place despite what folder they are in.

Additional context

To reproduce:

  1. Create a following folder structure:
    demo
    | - folder1
    | - folder2
  2. Open folder 1 in VSCode, then do "Workspace: Add Folder to Workspace..." command and select folder2.
  3. Add a file e.g. demo.py into folder2 and ask Cody to change something in it
  4. Click Apply
  5. Cody will create a new file under folder1, specifically folder1/folder2/demo.py instead of modifying folder2/demo.py
@DzmitrySudnik DzmitrySudnik added bug Something isn't working repo/cody labels Dec 11, 2024
Copy link

linear bot commented Dec 11, 2024

@PriNova PriNova self-assigned this Dec 11, 2024
@PriNova
Copy link
Collaborator

PriNova commented Dec 11, 2024

Hey @DzmitrySudnik

Thank you for reporting this issue. It is by design that Cody works only in a single workspace environment. Some features may work in multi-workspace env, but Smart Apply doesn't.

The team is considering expanding that feature.

If you don't mind open a feature request at our community forum here https://community.sourcegraph.com/c/cody/5
the team will be aware of.

Thank you

@PriNova PriNova closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
@DzmitrySudnik
Copy link
Author

Thanks @PriNova I've created https://community.sourcegraph.com/t/support-multi-folder-workspaces/1626

@PriNova PriNova reopened this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working repo/cody
Projects
None yet
Development

No branches or pull requests

2 participants