Skip to content

Issues with grok coder editingΒ #7750

@mrbm

Description

@mrbm

App Version

Version: 3.27.0 (173acdb)

API Provider

Groq

Model Used

Grok Coder 4 free / Sonic

Roo Code Task Links (Optional)

I seem to randomly have issues with roo code failing to be able to edit files, here is what the error message says:

backend/wispy-resonance-e9f9/src/handlers/payments.ts - Diff 1: ERROR: Diff block is malformed: marker '=======' found in your diff content at line 81. Expected: <<<<<<< SEARCH>?

CORRECT FORMAT:

<<<<<<< SEARCH
:start_line: (required) The line number of original content where the search block starts.
-------
[exact content to find including whitespace]
=======
[new content to replace with]
>>>>>>> REPLACE

AND

Failed to parse apply_diff XML: Failed to parse XML: StopNode is not closed.

AND

<error_details>
Diff 1 failed for file: backend/wispy-resonance-e9f9/src/handlers/payments.ts
Error: ERROR: Diff block is malformed: marker '=======' found in your diff content at line 49. Expected: <<<<<<< SEARCH>?

CORRECT FORMAT:

<<<<<<< SEARCH
:start_line: (required) The line number of original content where the search block starts.
-------
[exact content to find including whitespace]
=======
[new content to replace with]
>>>>>>> REPLACE


Suggested fixes:
1. Verify the search content exactly matches the file content (including whitespace and case)
2. Check for correct indentation and line endings
3. Use <read_file> to see the current file content
4. Consider breaking complex changes into smaller diffs
5. Ensure start_line parameter matches the actual content location

</error_details>

πŸ” Steps to Reproduce

I don't know how to reproduce this...just giving prompts and then...it just seems stuck now.

πŸ’₯ Outcome Summary

Expected code to run but after a few tries it then says:

Roo is having trouble...
This may indicate a failure in the model's thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. "Try breaking down the task into smaller steps").

πŸ“„ 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