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.