Claude-4-sonnet keeps replying that “The formatting is getting messed up again” in a loop and then rewrites the entire file. This has happened in multiple chat windows. The only language I’ve tested it with is C# so far.
Same Exact problem, it’s unusable at this point. I’d try Opus Max and see if it’s any different but I can’t get access right now, too many people using it
Yup I’m having the exact same issue, also with Sonnet 4. I’m using python though. I have my IDE set to auto format on save, but it has always been that way and I’ve never experienced this.
I tried with Opus 4 Max and I’m getting the same issue. 3.7 Sonnet is working fine
I’m experiencing this too. Nearly every single file edit fails, with messages like “string to replace was not found in the file”, and Claude 4 constantly messing up the formatting such that entire methods are put on a single line, trying to fix it, and failing. It’s an incredible amount of wasted time, compute, and my money. I’m going to back to 3.7 until this is resolved.
Experiencing the exact same problem - “The formatting got messed up again.” “The formatting is still messed up.” etc. etc.
Using Claude 4 with PHP. Very unusable, can we have a fix please?
Hey, could you share the request ID? For this, you need to disable privacy mode if it’s enabled, then reproduce the issue when it happens again and copy the ID.
Same issue, constant formatting issues and corrupt files.
Becoming unusable.
Seems to have been solved: Search and Replace Tool Failing Constantly with Formatting Issues - #4 by danperks