eclipse-theia/theia

Error: Command with id 'extension.node-debug.startAutoAttach' is not registered

Open

#8325 opened on Aug 6, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (18,676 stars) (2,478 forks)batch import
bugdebughelp wantedvscode

Description

Bug Description:

When running VS Code extension in hosted theia the following exception is thrown in hosted theia instance: Error: Command with id 'extension.node-debug.startAutoAttach' is not registered This issue is reproduced only when Node Auto Attach is enabled in preferences.

Steps to Reproduce:

  1. Build and run local theia from master.
  2. Create VS Code extension by running:
npm install -g yo generator-code
yo code
  1. Open created extension as workspace root.
  2. Open preferences and change Debug -> Node -> Node Auto Attach to on
  3. Run Hosted Plugin: Start Instance
  4. After a few seconds the following error will appear in hosted-instance-log output:
root ERROR [hosted-plugin: 21536] Promise rejection not handled in one second: Error: Command with id 'extension.node-debug.startAutoAttach' is not registered. , reason: Error: Command with id 'extension.node-debug.startAutoAttach' is not registered.
With stack trace: Error: Command with id 'extension.node-debug.startAutoAttach' is not registered.
    at CommandRegistryMainImpl.<anonymous> (http://localhost:3030/56.bundle.js:2056:35)
    at step (http://localhost:3030/56.bundle.js:1966:23)
    at Object.next (http://localhost:3030/56.bundle.js:1947:53)
    at http://localhost:3030/56.bundle.js:1941:71
    at new Promise (<anonymous>)
    at push.../../packages/plugin-ext/lib/main/browser/command-registry-main.js.__awaiter (http://localhost:3030/56.bundle.js:1937:12)
    at CommandRegistryMainImpl.push.../../packages/plugin-ext/lib/main/browser/command-registry-main.js.CommandRegistryMainImpl.$executeCommand (http://localhost:3030/56.bundle.js:2049:16)
    at RPCProtocolImpl.push.../../packages/plugin-ext/lib/common/rpc-protocol.js.RPCProtocolImpl.doInvokeHandler (http://localhost:3030/37.bundle.js:1151:23)
    at RPCProtocolImpl.push.../../packages/plugin-ext/lib/common/rpc-protocol.js.RPCProtocolImpl.invokeHandler (http://localhost:3030/37.bundle.js:1136:41)
    at RPCProtocolImpl.push.../../packages/plugin-ext/lib/common/rpc-protocol.js.RPCProtocolImpl.receiveRequest (http://localhost:3030/37.bundle.js:1100:31)

Additional Information

  • Operating System: Windows 10 / Debian Buster
  • Theia Version: master build

Contributor guide