Cursor Tab constantly trying to add new lines since v0.41

Since last minor patch, Cursor inline suggestions constantly (9 out of 10) includes these seemingly random line breaks (identified by a small CR symbol).

image

Sometimes at places where it doesn’t even make sense, and I thought it was reflecting my code style but it really isn’t.

image

It a bit annoying and wasn’t happening before the update, hope it gets fixed :slight_smile:

Specs:

Version: 0.41.2
VSCode Version: 1.91.1
Commit: 297991d169fa3a11975c5aa95adc69be73250c70
Date: 2024-09-21T04:18:39.370Z
Electron: 29.4.0
ElectronBuildId: undefined
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045

1 Like

made a fix on our end - are you still seeing this?

with 0.41.2 I don’t see this issue anymore, thanks

Seems to be solved!
Great work guys :slight_smile:

I’m currently on 0.45.7 and this has been consistently happening for me, to the point where now it’s annoying enough that I came here to see if anyone else was having the issue.

Seems like it just randomly decides to toss new lines every single time it completes something. It won’t even be a new line directly under whatever it just did, it will usually be a new line a few lines down… So for example, if it updates a method summary in C#, a new line will suddenly appear inside the method…

Extremely annoying and wasn’t happening until 0.45

I guess something recently changed brought this issue back…

1 Like

Started happening to me as well. Needs fixing ASAP! Thank yous

1 Like

Is there a way to rollback? This has been happening since I updated yesterday. Definitely damaged my trust of getting the new update when prompted

1 Like

I kinda cant believe that is still happening. for a week now AI has decided to roll its face on the enter key for every tab autocomplete it does and its still happening. i have never seen a more AI issue than this. couldnt explain how that can be happening to a normal human

i also came to such bug recent days!! plz fix it fast

This seems to be affecting more people, myself now included. Should probably just clip a final /n by default.

A quick fix for me was toggling the “End of Line Sequence” setting from “CRLF” to “LF”.

I’m pretty sure this issue stems from working with repositories edited across different operating systems. Windows and macOS handle file saves differently, which can cause compatibility issues—including, apparently, AI suggestions.

Bug popped up again V.0.45.11

Weird, it seems like (at least at the moment) V0.45.11 fixed it for me. Though, now that I’ve said that I’m sure it will randomly reappear in an hour lol.