Tab Autocomplete regularly suggests deleting code.
After accepting a Tab hint, it tries to delete a few lines of code below where Im working. Notably, event when the previous suggestion was an edit/create, not a deletion.
Screenshot description:
I typed “def event_end”
I accepted the hint
It immediately highlighted the next two methods in red.
Steps to Reproduce
Start an edit on existing code and accept Tab’s suggestion.
Tab will immediately suggest deleting the chunk of code below the last edit.
Hey, thanks for the report and the screenshot. It clearly shows the issue.
This is a known bug. After you accept an edit, Tab autocomplete can get too aggressive and suggest deletions. We’ve seen similar reports from other users in different languages (Python, TS, C#), so it’s not Ruby-specific:
Hi Dean - thanks for the reply. Ok good to know. Been doing the esc/toggle thing and it works for a workaround.
On a side note, Its a funny bug cause I thought the Tab model was more of a simpler pattern matcher. But it gets aggressive after adding code, not deleting.
When intentionally deleting code - e.g. debug logs - it’s really good at skipping around and deleting unwanted stuff…