Skip to content

Bug with array square brackets for Roo + gemini-2.5-proย #7576

@ghost

Description

App Version

3.26.3

API Provider

Google Gemini

Model Used

gemini-2.5-pro

Roo Code Task Links (Optional)

No response

๐Ÿ” Steps to Reproduce

Windows 11.
Open VS Code.

Ensure you are using a Google Gemini API provider and model as shown in the image. Gemini-2.5-pro:

Image

Switch to code mode and issue the instruction:
"Create a new test file named RooTestGemini.cs with a method in it that creates a string array with 5 elements and then sets the third element to contain the word 'hello'."

Be saddened to see that the generated code is incorrect and missing the array brackets and indices as shown in the image:

Image

Be intrigued to find that the exact same instruction and same LLM model and api provider succeeds in the competitor product Cline. See image:

Image

Try similar instructions and be saddened to see that Roo + Gemini-2.5-pro fails to write c# content with arrays with square brackets and indices. And be baffled that no such problem exists with Cline + Gemini-2.5-pro, or with Roo + GPT-4.1 or Roo + Claude.

๐Ÿ’ฅ Outcome Summary

Expected arrays with square brackets and indices but got missing brackets and indices.

๐Ÿ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions