vscode-wardley-maps icon indicating copy to clipboard operation
vscode-wardley-maps copied to clipboard

command 'vscode-wardley-maps.helloWorld' not found

Open octaviandavid opened this issue 4 years ago • 1 comments

For some reason after installing the extension on Manjaro with vscode 1.62.0 the menu "Wardley Maps: Display Map" displayed an error: command 'vscode-wardley-maps.helloWorld' not found.

Opening the "Developer: Toggle Developer Tools" this error was present in the console:

workbench.desktop.main.js:sourcemap:1851 Activating extension 'damonsk.vscode-wardley-maps' failed: Cannot find module 'vscode-languageclient'
Require stack:
- /home/octo/.vscode-oss/extensions/damonsk.vscode-wardley-maps-1.0.12/extension/out/extension.js
- /usr/lib/code/out/vs/loader.js
- /usr/lib/code/out/bootstrap-amd.js
- /usr/lib/code/out/bootstrap-fork.js.

The error was fixed by:

cd $HOME/.vscode-oss/extensions/damonsk.vscode-wardley-maps-1.0.12 
npm i --only=prod

Perhaps this should have been automatically run by the extension on activation phase.

octaviandavid avatar Nov 23 '21 16:11 octaviandavid

Many thanks for that! I was getting the same error when trying to work with VSCode Web and Gitpod.

Adding a .gitpod.yml file with the following lines did the trick:

tasks:
  - init: cd /workspace/.vscode-remote/extensions/damonsk.vscode-wardley-maps-1.0.12 && npm i --only=prod

deepseven avatar Aug 10 '22 09:08 deepseven