eclipse-theia/theia
View on GitHubError: Command with id 'extension.node-debug.startAutoAttach' is not registered
Open
#8325 opened on Aug 6, 2020
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:
- Build and run local theia from master.
- Create VS Code extension by running:
npm install -g yo generator-code
yo code
- Open created extension as workspace root.
- Open preferences and change
Debug -> Node -> Node Auto Attachtoon - Run
Hosted Plugin: Start Instance - 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