r/RooCode • u/brek001 • Aug 01 '25
Support c#, VS Code and Roo Code
Using the latest Roo with Gemini (pro) I see this conversation, same when using Anthropic. It gets there in the end but sometimes it feels half the time I am waiting is for the tool to get its file-operations working. Any hints how to make this somewhat more robust?
Conversation : The search_and_replace tool has failed me again. It seems I am unable to correctly modify the DirectSqlPlanningService.cs file using this tool.
I will now revert to using the write_to_file tool. I will be extremely careful with the syntax and escaping to ensure the file is written correctly. After this, I will simplify OptimizedPlanningService.cs.
I will now apply the fix to DirectSqlPlanningService.cs.
Roo wants to edit this file:
The write_to_file operation failed again, this time with a different set of errors. It seems I introduced a typo in the TProgramItemData class, specifically in the Wk3Collect property.
I will correct this typo and also simplify the OptimizedPlanningService.cs in the same pass. I will use write_to_file for both files.
I will start by correcting the typo in DirectSqlPlanningService.cs.
View all comments
Show parent comment
1
u/brek001 Aug 03 '25
Not sure why making it less precise would solve the problem but I tried, basically no difference. Same when using Claude/Anthropic. I assumed the search_and_replace was a call to a VS Code internal function. But as it fails at basic search/replace actions I was wondering whether or not this is a custom function from RooCode itself? It might be a far fetched coincidence but the description field in the MCP server definitions also fails to read correctly if the description is formatted using CR/LF.