Skip to content

C# code gets changed wrongly because of syntax-problemsΒ #6770

@MartinWLN

Description

@MartinWLN

App Version

latest (3.2.5?)

API Provider

Google Gemini

Model Used

Pro

Roo Code Task Links (Optional)

No response

πŸ” Steps to Reproduce

Roo started modifying the code and displayed:
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.

πŸ’₯ Outcome Summary

What should have been a simple search and replace ended in roo running around trying to figure out what went wrong.

For a moment I saw code like this:
builder.Services.Configure<BlazorServerSettings>(builder.Configuration.GetSection("BlazorServerSettings"));
The &lt; and &gt; should be < and >

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions