damonsk / vscode-wardley-maps

A Wardley Maps for Visual Studio Code extension supporting rendering and editing maps-as-code.
https://onlinewardleymaps.com/
MIT License
63 stars 12 forks source link

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

Open octaviandavid opened 2 years ago

octaviandavid commented 2 years ago

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.

deepseven commented 2 years ago

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