eclipse-theia/theia

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

Open

#8325 aperta il 6 ago 2020

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (2478 fork)batch import
bugdebughelp wantedvscode

Metriche repository

Star
 (18.676 star)
Metriche merge PR
 (Merge medio 15g 4h) (75 PR mergiate in 30 g)

Descrizione

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

Guida contributor