Randomly getting ghosttext errors

Often when I go to definition I get the following:

The editor could not be opened due to an unexpected error: Unable to resolve resource cpp-ghost-text-preview-widget-anysphere://sllryllxbc

Then I need to restart cursor in order to be able to goto definition again.

Hi @haringsrob

Please provide the following information according to this guide:

I’m getting the same error: “The editor could not be opened due to an unexpected error: Unable to resolve resource cpp-ghost-text-preview-widget-anysphere://fowvcjbexj”

Here is all process: Cursor - app/CustomClasses/HireVehicle/NewRequestHiringVehicle.php — deliveryapp-back - 16 January 2025 | Loom

Once I restart it it works

are you using devsense php lsp?

Having same issues here.

Hey, I believe this is due to how the Composer creates the code snippets you see in the Composer output. It looks like some linters are linting these snippets, even though they are only intended as temporary.

We’ve got a few reports of this so far, and have it on our backlog to fix in a future update!

Thank you! This often becomes really annoying on goto definitions and such.

Thank you for your feedback.

Is there a workaround to prevent this from happening until a fix lands? I started to experience this two weeks ago and it has become very distracting. Looking forward to the fix :raised_hands:

Not right now, but it’s a bug we’re working on now, so I hope it won’t be too long to get a fix out.