# Cursor can no longer fix indentation errors?

**URL:** <https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306>\
**Category:** Bug Reports\
**Created:** [October 21, 2025, 10:30am UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306 "2025-10-21T10:30:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![user919](https://avatars.discourse-cdn.com/v4/letter/u/958977/32.png) [@user919](https://forum.cursor.com/u/user919)\
**Post date:** [October 21, 2025, 10:30am UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306/1 "2025-10-21T10:30:04Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Starting yesterday, Cursor frequently inserts indentation errors in my python code, then notices them and tries to fix them, says it fixed them, but has done nothing. This happens with several different models. I pointed this out to the model at one point and it tested and agreed that “everything seems completely broken” and proceeded with copying the entire code to a new file, fix the errors and replace the old file with the new. This worked.

### Steps to Reproduce

Have it write python, ask for it to correct linter errors

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version 1.7.53  
VSCODE 1.99.3

### For AI issues: which model did you use?

Auto, GPT-5, Sonnet

### Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

---

<div class="post-metadata">

**Author:** ![user919](https://avatars.discourse-cdn.com/v4/letter/u/958977/32.png) [@user919](https://forum.cursor.com/u/user919)\
**Post date:** [October 21, 2025, 10:39am UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306/2 "2025-10-21T10:39:33Z")

</div>

As an addition I can add that I can see it working on the file, removing the linter errors, but then after it fixes the last one, the all are added back.

Chaning model does not matter, creating a new chat does not matter. BUT, if I close Cursor and open it again, same project, ask it to fix the errors, it suddenly works.

---

<div class="post-metadata">

**Author:** ![JWVerzijden](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@JWVerzijden](https://forum.cursor.com/u/JWVerzijden)\
**Post date:** [October 21, 2025, 10:41am UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306/3 "2025-10-21T10:41:10Z")

</div>

Indentation errors occur constantly with every language I program in, it removes a full indentation level when inserting a code snippet, I noticed this seems to happen primarily when the agent reads a portion of the file rather than the entire file. If this portion has a common indentation the agent will start causing these indentation errors.

---

<div class="post-metadata">

**Author:** ![sanjeed5](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sanjeed5/32/9610_2.png) [@sanjeed5](https://forum.cursor.com/u/sanjeed5)\
**Post date:** [November 7, 2025, 10:25am UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306/4 "2025-11-07T10:25:29Z")

</div>

Thanks for the report. Can you please check if you’re still facing this issue on the latest version?  
You can get the latest version from [Download · Cursor](http://cursor.com/download)

---

<div class="post-metadata">

**Author:** ![user919](https://avatars.discourse-cdn.com/v4/letter/u/958977/32.png) [@user919](https://forum.cursor.com/u/user919)\
**Post date:** [November 7, 2025, 10:44am UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306/5 "2025-11-07T10:44:01Z")

</div>

I have not experienced it in the latest version, no. Thanks for getting back to me!

---

<div class="post-metadata">

**Author:** ![user919](https://avatars.discourse-cdn.com/v4/letter/u/958977/32.png) [@user919](https://forum.cursor.com/u/user919)\
**Post date:** [November 7, 2025, 12:55pm UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306/6 "2025-11-07T12:55:15Z")

</div>

Actually, I JUST ran into something similar today, but this time, Composer1 could solve it eventually. I believe the original problem is the same (that it somehow can’t correctly fix the indentation errors for some reason, maybe due to not looking at enough code as someone above said), but Composer1 tried harder than just using the same method to incorrectly “fix” the indentation.

It repeatedly found the linter error (after I pointed it out), and tried several times tried to fix it by just editing the code normally:  
`Fixing the indentation issue:`

After 4-5 tries of that it tried several things:  
`Reading a larger section to understand the exact formatting:`  
`Checking for mixed tabs/spaces:`  
`Trying a different approach with exact whitespace matching:`  
`Verifying the file was updated and checking for caching issues:`  
`Replacing the entire function to fix the indentation:`

Neither of these worked either, the indentation error remained. Then it did this:  
`Fixing the indentation directly with a Python script:`

Which actually fixed the issue. Props for not giving up and eventually fixing it, but it would have an easier time if it didn’t have to resort to writing a python script for this.

---

<div class="post-metadata">

**Author:** ![sanjeed5](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sanjeed5/32/9610_2.png) [@sanjeed5](https://forum.cursor.com/u/sanjeed5)\
**Post date:** [November 10, 2025, 10:21pm UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306/7 "2025-11-10T22:21:31Z")

</div>

There are some great suggestions for Python setup here in case it’s helpful: [https://cursor.com/docs/configuration/languages/python](https://cursor.com/docs/configuration/languages/python)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [December 2, 2025, 10:22pm UTC](https://forum.cursor.com/t/cursor-can-no-longer-fix-indentation-errors/138306/8 "2025-12-02T22:22:25Z")

</div>

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
