Aurélien Pupier
Aurélien Pupier

Reputation: 814

Command not found when installing from vsix

I'm trying to build the vsix for my project vscode-atlasmap locally from this branch https://github.com/apupier/vscode-atlasmap/tree/36-useWebiewAPI

When I launch the debug instance, it is working fine. If i build the vsix, install it and then try to use the "Open AtlasMap" I have an error message "command 'atlasmap.start' not found"

I got a message that the extension has been successfully installed.

The mentioned command is listed in the "Contributions": enter image description here

What could be the issue? What is different from "Debug configuration" and a built vsix?

regards,

Upvotes: 4

Views: 2685

Answers (1)

Eric
Eric

Reputation: 73

Make sure that all of your dependencies are installed via

node install

before packaging. Note that vsce will only install those mentioned in your package.json.

When I had this problem, I moved extend, request, and underscore from devDependencies to dependences. Then I ran

node install
and then
vsce package
again.

To retry, make sure you uninstall the old version of your package, and that you remove the package from wherever it is installed (for me in .vscode/extensions),

Upvotes: 2

Related Questions