Random files appear in the Problems tab

If I restart the editor, the problem goes. And after sometimes, a new problem appears.

What is cpp-ghost-text-preview-widget-anysphere?

Version: 0.42.3
VSCode Version: 1.93.1
Commit: 949de58bd3d85d530972cac2dffc4feb9eee1e40
Date: 2024-10-16T17:56:07.754Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

1 Like

Hi @SmartManoj

This is the hint text from the Cursor Tab you see when typing code.

Random files appear in the Problems tab.

Could you tell me more about your project? What are you working on? From your screenshot and question, I don’t quite get it yet.

I’m getting something similar working on an Astro project with the Astro vscode extension installed.

Output from Astro Language Server:

languageId not found for cpp-ghost-text-preview-widget-anysphere://ldxcrblzju
languageId not found for cpp-ghost-text-preview-widget-anysphere://ldxcrblzju
languageId not found for cpp-ghost-text-preview-widget-anysphere://ldxcrblzju
languageId not found for cpp-ghost-text-preview-widget-anysphere://ldxcrblzju
languageId not found for cpp-ghost-text-preview-widget-anysphere://ldxcrblzju
languageId not found for cpp-ghost-text-preview-widget-anysphere://ldxcrblzju
languageId not found for cpp-ghost-text-preview-widget-anysphere://ldxcrblzju
languageId not found for cpp-ghost-text-preview-widget-anysphere://ldxcrblzju
[Error - 08:58:57] Request workspace/symbol failed.
  Message: Request workspace/symbol failed with message: Cannot read properties of undefined (reading 'uri')
  Code: -32603 

And from Problems:

If I click the problem I get:
The editor could not be opened due to an unexpected error: Unable to resolve resource aichat-code-block-anysphere://yxoijhorgm

I got a similar error that the Ruby LSP breaks in Cursor with errors like cpp-ghost-text-preview-widget-anysphere://vymfzolhyh (RubyLsp::Store::NonExistingDocumentError)

1 Like

Multiple errors that persist on reload/close. The quick fix for anyone stuck is to delete all composer items and then run > Developer: Reload Window.

1 Like

Thank you. I can confirm that this fix works.

Working on .astro-files, deleting composer items from the list helps to clean up the problems-panel. But it is what it is, a quick-fix.
A more durable solution would be very much appreciated.

These problems are the result of YAML validation running against Cursor’s panes using the YAML extension.

You can observe this by disabling and re-enabling YAML validation. In Visual Studio Code settings, change yaml.validate to false to make these errors disappear. Setting it back to true leads to them reappearing.

You can disable validation for specific files in your workspace using a workaround involving the yaml.schemas configuration, but this doesn’t appear to work for files outside your workspace.

The “fix” is to disable YAML validation, but this obviously isn’t ideal for anyone that works will YAML files regularly as I do.

Same issue here with Astro Project inside Cursor, would love a more permanent solution

Bug seems to be acknowledged

+1 Having this very same issue on 0.44.11

Having this issue in Astro as well;


In v0.44.11