Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: There are no document for untitled:/Untitled-1aichatviewlanguage #14842

Open
kittaakos opened this issue Feb 5, 2025 · 4 comments
Open

Comments

@kittaakos
Copy link
Contributor

Bug Description:

When I start Theia from the sources, I see this error twice in the console:

root ERROR Error: There are no document for untitled:/Untitled-1aichatviewlanguage
    at CodeActionAdapter.provideCodeAction (/Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_core_shared_reflect-metadata_index_js-packages_plugin-ext_lib_hosted_node_plugin-hos-48197a.js:8188:35)
    at /Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_core_shared_reflect-metadata_index_js-packages_plugin-ext_lib_hosted_node_plugin-hos-48197a.js:7705:93
    at LanguagesExtImpl.withAdapter (/Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_core_shared_reflect-metadata_index_js-packages_plugin-ext_lib_hosted_node_plugin-hos-48197a.js:7448:20)
    at LanguagesExtImpl.$provideCodeActions (/Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_core_shared_reflect-metadata_index_js-packages_plugin-ext_lib_hosted_node_plugin-hos-48197a.js:7705:21)
    at RPCProtocolImpl.handleRequest (/Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_plugin-ext_lib_common_plugin-api-rpc_js.js:2081:31)
    at RpcProtocol.requestHandler (/Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_plugin-ext_lib_common_plugin-api-rpc_js.js:2063:96)
    at RpcProtocol.handleRequest (/Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_core_lib_common_index_js-node_modules_vscode-languageserver-types_lib_umd_sync_recursive.js:3625:39)
    at RpcProtocol.handleMessage (/Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_core_lib_common_index_js-node_modules_vscode-languageserver-types_lib_umd_sync_recursive.js:3512:26)
    at /Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_core_lib_common_index_js-node_modules_vscode-languageserver-types_lib_umd_sync_recursive.js:3498:66
    at /Users/kittaakos/dev/git/theia/examples/browser/lib/backend/packages_core_lib_common_index_js-node_modules_vscode-languageserver-types_lib_umd_sync_recursive.js:1414:69

I do not see this causing any malfunction, but it does not make the development very pleasant (#12693). When I am working on something, I have to scroll through these unrelated lines in the terminal and browser logs every time.

Steps to Reproduce:

  1. Start the browser example from the sources
  2. Open Theia as your workspace
  3. See the errors

Additional Information

  • Operating System:
  • Theia Version: 451464e
@tsmaeder
Copy link
Contributor

tsmaeder commented Feb 6, 2025

@planger maybe you can speak to this?

@sdirix
Copy link
Member

sdirix commented Feb 6, 2025

I did not yet look into the issue, however I noticed that it only occurs when there are active VS code extensions, i.e. running Theia without download:plugins will not produce these errors.

@planger
Copy link
Contributor

planger commented Feb 6, 2025

Thanks for tracking this issue! I saw this too. I found that Colin investigated a similar issue some time ago and it seems to be related to certain services that are still active and invoke features that should served by VS Code extensions, but they can't deal with the temporary document we create, so they log the error.

It seems the only way to get rid of this logged error is to find out which enabled Monaco features are causing this and turn those off.

@planger
Copy link
Contributor

planger commented Feb 6, 2025

I briefly tried a few editor options (below) and registering an empty code action provider, but this didn't help.

lightbulb: { enabled: ShowLightbulbIconMode.Off },
quickSuggestions: false,
codeActionsOnSaveTimeout: 0,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants