theia: [plugin] race conditions because of late command registration

Reproducible with debug-auto-launch and debug-node VS Code extensions.

root ERROR [hosted-plugin: 19942] (node:19942) UnhandledPromiseRejectionWarning: Error: The command 'extension.node-debug.startAutoAttach' cannot be executed. There are no active handlers available for the command. (args: [0])
    at CommandRegistry.<anonymous> (https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/bundle.js:95414:31)
    at step (https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/bundle.js:95221:23)
    at Object.next (https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/bundle.js:95202:53)
    at https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/bundle.js:95196:71
    at new Promise (<anonymous>)
    at ../../packages/core/lib/common/command.js.__awaiter (https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/bundle.js:95192:12)
    at CommandRegistry.../../packages/core/lib/common/command.js.CommandRegistry.executeCommand (https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/bundle.js:95401:16)
    at CommandRegistryMainImpl.push.../../packages/plugin-ext/lib/main/browser/command-registry-main.js.CommandRegistryMainImpl.$executeCommand (https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/54.bundle.js:4527:72)
    at RPCProtocolImpl.push.../../packages/plugin-ext/lib/api/rpc-protocol.js.RPCProtocolImpl.doInvokeHandler (https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/54.bundle.js:752:23)
    at RPCProtocolImpl.push.../../packages/plugin-ext/lib/api/rpc-protocol.js.RPCProtocolImpl.invokeHandler (https://3000-ebfc7401-823a-4c74-b07d-77373b5a0661.ws-eu.gitpod.io/54.bundle.js:737:41)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

It seems to be because one extension is already deployed and try to invoke command, while extensions contributing commands are not installed yet. I will need to confirm it. @evidolob @benoitf could you confirm that it can happen?