Skip to content

Toolbar console errors #15664

@sdirix

Description

@sdirix

Bug Description:

During regular usage of Theia, the console is flooded with errors like this

2025-05-28T05:30:27.061Z root ERROR Error: not a compound menu node: ["plugin_editor/title"]
    at MenuModelRegistry.getMenu (http://localhost:3000/bundle.js:409298:19)
    at TabBarToolbarRegistry.visibleItems (http://localhost:3000/bundle.js:391756:48)
    at TabBarToolbar.updateTarget (http://localhost:3000/bundle.js:392020:62)
    at ToolbarAwareTabBar.updateToolbar (http://localhost:3000/bundle.js:393271:22)
    at ToolbarAwareTabBar.onUpdateRequest (http://localhost:3000/bundle.js:393263:14)
    at ToolbarAwareTabBar.processMessage (http://localhost:3000/bundle.js:11962:22)
    at invokeHandler (http://localhost:3000/bundle.js:9067:21)
    at sendMessage (http://localhost:3000/bundle.js:8821:13)
    at runMessageLoop (http://localhost:3000/bundle.js:9118:17)
    at http://localhost:3000/bundle.js:8795:42

After 5 minutes of usage I had 20+ of these entries in the Console

Steps to Reproduce:

  1. Build the Browser example application (I did not even download the vsx extensions)
  2. Use the tool a bit, switching between tabs is sufficient to trigger this for me

I have the toolbar visible.

This is my toolbar config, in case it's relevant

{
    "items": {
        "left": [
            [
                {
                    "id": "textEditor.commands.go.back",
                    "command": "textEditor.commands.go.back",
                    "icon": "codicon codicon-arrow-left"
                },
                {
                    "id": "textEditor.commands.go.forward",
                    "command": "textEditor.commands.go.forward",
                    "icon": "codicon codicon-arrow-right"
                }
            ],
            [
                {
                    "id": "workbench.action.splitEditorRight",
                    "command": "workbench.action.splitEditor",
                    "icon": "codicon codicon-split-horizontal"
                }
            ]
        ],
        "center": [
            [
                {
                    "id": "theia-sample-toolbar-contribution",
                    "group": "contributed"
                }
            ]
        ],
        "right": [
            [
                {
                    "id": "workbench.action.showCommands",
                    "command": "workbench.action.showCommands",
                    "icon": "codicon codicon-terminal",
                    "tooltip": "Command Palette"
                },
                {
                    "id": "ai-terminal:open",
                    "command": "ai-terminal:open",
                    "icon": "codicon codicon-microscope"
                }
            ]
        ]
    }
}

Additional Information

  • Operating System: Ubuntu 24.04
  • Theia Version: latest master, i.e. 9b2d680

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions