Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tracecompass-dev] Activation error on packaged vscode extension

Hi everyone,


I am trying to package the VSCode Trace extension (https://github.com/theia-ide/vscode-trace-extension) so i can install via VSIX into my VSCode instance. The vsce package command produces a .vsix file successfully, but when i install it into my vscode instance, it throws an activation error and complains about missing tsp-client. (Full stack attached) The extension runs fine if i launch the extension through debug configuration, so I am thinking it is likely a packaging issue.


The steps i ran to package it:

1) yarn

2) yarn vsce:package


Has anyone ran into this issue? Is there a step I am missing?


If it's a bug, then any guidance into this matter would be very helpful.

Thanks,
Neel

This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
[2022-09-06 10:47:26.909] [exthost] [error] Activating extension tracecompass-community.vscode-trace-extension failed due to an error:
[2022-09-06 10:47:26.909] [exthost] [error] Error: Cannot find module 'tsp-typescript-client/lib/protocol/tsp-client'
Require stack:
- /home/ngondalia/.vscode/extensions/tracecompass-community.vscode-trace-extension-0.1.0/lib/utils/tspClient.js
- /home/ngondalia/.vscode/extensions/tracecompass-community.vscode-trace-extension-0.1.0/lib/trace-viewer-panel/trace-viewer-webview-panel.js
- /home/ngondalia/.vscode/extensions/tracecompass-community.vscode-trace-extension-0.1.0/lib/trace-explorer/analysis-tree.js
- /home/ngondalia/.vscode/extensions/tracecompass-community.vscode-trace-extension-0.1.0/lib/extension.js
- /usr/share/code/resources/app/out/vs/loader.js
- /usr/share/code/resources/app/out/bootstrap-amd.js
- /usr/share/code/resources/app/out/bootstrap-fork.js
	at Function.Module._resolveFilename (node:internal/modules/cjs/loader:987:15)
	at Module._load (node:internal/modules/cjs/loader:832:27)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
	at Function.r._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:14538)
	at Function.b._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:62507)
	at Function.v._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:61875)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at p (/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at Object.<anonymous> (/home/ngondalia/.vscode/extensions/tracecompass-community.vscode-trace-extension-0.1.0/lib/utils/tspClient.js:4:22)
	at Module.u._compile (/usr/share/code/resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
	at Function.r._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:14538)
	at Function.b._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:62507)
	at Function.v._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:61875)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at p (/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at Object.<anonymous> (/home/ngondalia/.vscode/extensions/tracecompass-community.vscode-trace-extension-0.1.0/lib/trace-viewer-panel/trace-viewer-webview-panel.js:5:21)
	at Module.u._compile (/usr/share/code/resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
	at Function.r._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:14538)
	at Function.b._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:62507)
	at Function.v._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:61875)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at p (/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at Object.<anonymous> (/home/ngondalia/.vscode/extensions/tracecompass-community.vscode-trace-extension-0.1.0/lib/trace-explorer/analysis-tree.js:6:38)
	at Module.u._compile (/usr/share/code/resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
	at Function.r._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:14538)
	at Function.b._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:62507)
	at Function.v._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:61875)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at p (/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at Object.<anonymous> (/home/ngondalia/.vscode/extensions/tracecompass-community.vscode-trace-extension-0.1.0/lib/extension.js:5:25)
	at Module.u._compile (/usr/share/code/resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
	at Function.r._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:14538)
	at Function.b._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:62507)
	at Function.v._load (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:61875)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Function.r [as __$__nodeRequire] (/usr/share/code/resources/app/out/vs/loader.js:5:101)
	at w._loadCommonJSModule (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:63965)
	at w._doActivateExtension (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:14754)
	at w._activateExtension (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:13693)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async v._activate (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8180)
	at async v._waitForDepsThenActivate (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8122)

Back to the top