Incorrect indentations

I’m noticing an unusually high amount of indentation errors in Python with the latest version of Cursor when I apply suggested code changes.

Version: 0.46.7 (Universal)
VSCode Version: 1.96.2
Commit: 3611c5390c448b242ab97e328493bb8ef7241e60
Date: 2025-02-27T07:15:37.748Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 23.2.0
2 Likes

Hey, could you share a screenshot?

Heres some examples:


it often cannot correct itself!:

I have tried several models and agent or manual mode not working this is for this version:

It seems like sometimes it hallucinates these indentation errors and sometimes they are real and it cant fix them. Happens often for me with python and sonnet-3.7

Im not using python but on the same app version i had issue when my rules were partially contradicting it messed up the code very similar to what you describe. I

First i thought its an Cursor bug but when I changed the rules for other reasons it went away and i realized the cause and could even reproduce it.

Not sure if that would help but worth a try.

1 Like

Can you elaborate on your rules?

Where were the contradictions?

For me this indentation error is linked with closing/opening cursor and restoring checkpoints.

fixing the errors, saving a backup (.bak), closing and opening cursor, resulted in 89 problems in the recently corrected code (same 89 errors that I had just fixed) and 8 problems in the .bak file.