-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
Which version of the app are you using?
3.10.5
Which API Provider are you using?
Google Gemini
Which Model are you using?
gemini pro 2.5
What happened?
you'll get something like:
Error applying diff:
ENOENT: no such file or directory, open '/home/user/code/workspace/package.json'
and then:
Error reading file:
File not found: /home/user/code/workspace/libs/mcp-typescript-sdk/libs/mcp-typescript-sdk/package.json
(notice path duplication)
where /home/user/code/workspace/libs/mcp-typescript-sdk is the git repo it's supposed to be working on.
Steps to reproduce
Create a multifolder vscode workspace with multiple git repos and prompt roo to start working on one of the subdir projects. I tried to resolve it by global prompt explaining the situation about CWD but it didn't work.
Relevant API REQUEST output
Additional context
This problem applies to both reading files and editing them. After a few tries the AI is usually able to read the file by adjusting paths. The solution the AI is sometimes able to come up with for editing is to write out the entire file without diff editing. Idk why. I'm guessing that tool is handling paths differently. It's never able to recover diff editing from what I've seen.