theia: Frontend plugins are broken
Description
Theia cannot start frontend plugins any more. Despite frontend plugins are displayed in Plugins panel they aren’t loaded correctly, so there is no contributions from them.
Reproduction Steps
- Generate a hello world frontend plugin.
- Start Theia with it (use
THEIA_PLUGINSorHOSTED_PLUGINenvironment variable)
OS and Theia version:
Fedora 31, Theia 7a77a3b36416fca1319e66048feb1a1d8264401c (master at the moment of this issue creation).
Diagnostics:
Theia log
root INFO Theia app listening on http://0.0.0.0:3000.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /home/mmorhun/projects/theia/plugins/2222
root INFO Deploying frontend plugin "2222@0.0.1" from "dist/2222-frontend.js"
root INFO Detected keyboard layout from browser API: US (PC)
root WARN Collided keybinding is ignored; {"command":"editor.action.toggleTabFocusMode","keybinding":"ctrl+m"} collided with {"command":"core.toggleMaximized","keybinding":"ctrl+m"}
root WARN Could not register keybinding:
{"command":"editor.action.toggleTabFocusMode","keybinding":"ctrl+m"}
Error: "ctrl+m" is in collision with something else [scope:0]
root WARN Collided keybinding is ignored; {"command":"passthrough","keybinding":"ctrl+k","context":"terminalActive"} collided with {"command":"terminal:clear","keybinding":"ctrlcmd+k","context":"terminalActive"}
root WARN Could not register keybinding:
{"command":"passthrough","keybinding":"ctrl+k","context":"terminalActive"}
Error: "ctrl+k" is in collision with something else [scope:0]
root INFO Using Git [2.23.0] from the PATH. (/usr/bin/git)
root INFO [nsfw-watcher: 84352] Started watching: /home/mmorhun/.theia
root WARN EditorNavigationContribution.onStart is slow, took: 558.870000000752 ms
root INFO Changed application state from 'init' to 'started_contributions'.
root INFO Changed application state from 'started_contributions' to 'attached_shell'.
root INFO >>> Restoring the layout state...
root INFO Checking whether '--no-optional-locks' can be used with the current Git executable. Minimum required version is '2.15.0'.
root INFO '--no-optional-locks' is a valid Git option for the current Git version: '2.23.0'.
root INFO [nsfw-watcher: 84352] Started watching: /home/mmorhun/projects/che-theia-samples
root INFO [bd20cf06-6b45-49a2-8fc0-47027ab3b76b] Sync of 1 plugin took: 171.91000000093482 ms
root INFO [nsfw-watcher: 84352] Started watching: /home/mmorhun/projects/che-theia-samples/.theia/tasks.json
root INFO [nsfw-watcher: 84352] Started watching: /home/mmorhun/projects/che-theia-samples/.theia/launch.json
root INFO [nsfw-watcher: 84352] Started watching: /home/mmorhun/projects/che-theia-samples/.theia/settings.json
root INFO [nsfw-watcher: 84352] Started watching: /home/mmorhun/projects/che-theia-samples/samples/key-value-storage/src/key-value-storage-frontend.ts
root INFO [nsfw-watcher: 84352] Started watching: /home/mmorhun/projects/che-theia-samples
root INFO [hosted-plugin: 84391] PLUGIN_HOST(84391) starting instance
root INFO <<< The layout has been successfully restored.
root INFO Changed application state from 'attached_shell' to 'initialized_layout'.
root INFO [bd20cf06-6b45-49a2-8fc0-47027ab3b76b][theia.2222]: Loaded contributions.
root INFO [bd20cf06-6b45-49a2-8fc0-47027ab3b76b] Load contributions of 1 plugin took: 0.5850000015925616 ms
root ERROR Failed to start plugins for 'frontend' host Error: not supported
at Object.get rawModel [as rawModel] (http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:12876:35)
at http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:38578:45
at Object.init (http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:12880:35)
at PluginManagerExtImpl.<anonymous> (http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:39004:60)
at step (http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:38875:23)
at Object.next (http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:38856:53)
at http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:38850:71
at new Promise (<anonymous>)
at ../../packages/plugin-ext/lib/plugin/plugin-manager.js.__awaiter (http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:38846:12)
at PluginManagerExtImpl.../../packages/plugin-ext/lib/plugin/plugin-manager.js.PluginManagerExtImpl.$start (http://localhost:3000/worker-ext.7e4110dacb549bd37efd.js:38999:16)
root INFO [bd20cf06-6b45-49a2-8fc0-47027ab3b76b] Start of 0 plugins took: 831.0050000000047 ms
root INFO [bd20cf06-6b45-49a2-8fc0-47027ab3b76b] Sync of 0 plugins took: 57.655000000522705 ms
root INFO [bd20cf06-6b45-49a2-8fc0-47027ab3b76b] Load contributions of 0 plugins took: 0.019999999494757503 ms
root INFO Changed application state from 'initialized_layout' to 'ready'.
root INFO [bd20cf06-6b45-49a2-8fc0-47027ab3b76b] Start of 0 plugins took: 58.98499999966589 ms
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 15 (11 by maintainers)
I’ve got a fix: stand by for PR.
I faced with the same issue today when tried to use my old test plugin. I tried to generate a new plugin according to https://theia-ide.org/docs/authoring_plugins and got the same error. Maybe it makes sense to edit docs or do not generate frontend hello world plugin.
@akosyakov Can you detail what this implies for the
hello world frontend pluginitself? What has to be done so that it can be loaded safely?