Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLM did not conform to the edit | SEARCH/REPLACE block failed to match! #3651

Open
O-m-k-a-r opened this issue Mar 26, 2025 · 1 comment
Open

Comments

@O-m-k-a-r
Copy link

Issue

While using Aider it , correctly identifies the changes to be done in the repo, but it is not able to make those changes in the code. It gives below mentioned error, I have also tried using various edit formats after reading File editing problems troubleshooting guide.

The LLM did not conform to the edit format.
https://aider.chat/docs/troubleshooting/edit-errors.html

 1 SEARCH/REPLACE block failed to match!

 SearchReplaceNoExactMatch: This SEARCH block failed to exactly match lines 
in change_demo\CreateAnItems (1).cpp

The SEARCH section must exactly match an existing block of lines including all 
white space, comments, indentation, docstrings, etc

Please provide a solution to this issue.

Version and model info

Aider v0.77.1
Model: azure/gpt-4o-mini with architect edit format
Editor model: azure/gpt-4o-mini with diff edit format
Git repo: .git with 0 files
Repo-map: using 4096 tokens, auto refresh

@O-m-k-a-r O-m-k-a-r changed the title LLM did not conform to the edit LLM did not conform to the edit | SEARCH/REPLACE block failed to match! Mar 27, 2025
@DebashisSahoo2001
Copy link

I am Getting same issue with architect mode. Suggest some solution to resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants