Error while searching - Cannot read properties of undefined (reading 'length')

Describe the Bug

Cannot complete the search for a text in the whole project, due to an error appearing in a red box saying “Cannot read properties of undefined (reading ‘length’)”

Steps to Reproduce

  1. Open the search and input a text so search for in the whole project
  2. Wait for the search to complete, meanwhile scrolling through the results
  3. Getting the following when search completed

Expected Behavior

Get results, if such exist

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.3 (Universal)
VSCode Version: 1.96.2
Commit: 979ba33804ac150108481c14e0b5cb970bda3260

Additional Information

First time this appears, it is most likely intermittent.

Does this stop you from using Cursor

No - Cursor works, but with this issue

On Windows, I see Cannot read properties of undefined (reading 'fontSize') when the search bar/banner stays idle for a couple of minutes. Closing the search window will stop the error box from popping up again.

image

To be specific, I caught this when I was working with Jupyter notebooks in Cursor.

1 Like

on macos I see Cannot read properties of undefined (reading 'xxx') after I accept some code from an agent suggest. quit cursor and re-launch the app, the problem gone for temporary.