vscode-svgviewer icon indicating copy to clipboard operation
vscode-svgviewer copied to clipboard

No handler found for the command: 'svgviewer.open'. An extension might be missing an activation event.

Open hugonakamura opened this issue 9 years ago • 6 comments

I have installed the extension but I get this error message when I try to run the SVG viewer.

Any idea how can I configure svgviewer.open?

hugonakamura avatar May 23 '16 17:05 hugonakamura

It's not reproducible on my machine. Could you please send me your enviroment ?

cssho avatar May 25 '16 01:05 cssho

sure! how do I do it?

hugonakamura avatar May 25 '16 02:05 hugonakamura

Please send me following informations.

  • OS
  • VSCode version
  • vscode-svgviewer version

cssho avatar May 25 '16 04:05 cssho

  • Windows 10
  • VS Code 1.1.1
  • svgviewer 1.1.11

hugonakamura avatar May 25 '16 12:05 hugonakamura

Ummm... Your environment is the same as me. Try reinstall a extension or clone this repository and debug it

cssho avatar May 26 '16 07:05 cssho

Problem (in my case): Extension node_modules weren't being installed.

Bigger Problem: VS Code has become disconnected from your extensions living at %USERPROFILE%\.vscode\extensions\. So uninstalling and reinstalling the extension won't even work.

Solution: Uninstall and reinstall Visual Studio Code (don't worry, all of your settings and extensions will persist).

  • Windows 10
  • VS Code 1.24.1
  • SVG Viewer 1.4.4

I was as well running into this problem even after I uninstalled, reloaded, and then reinstalled the extension.

So I cracked open the Dev Console to see if VS Code was throwing anything and sure enough ts.console was logging Error: Cannot find module 'sync-exec' when trying to load up the SVG Viewer.

Looking in the extensions node_modules %USERPROFILE%\.vscode\extensions\cssho.vscode-svgviewer-1.4.4\node_modules it was completely empty despite having just been reinstalled.

So I uninstalled the extension once more, but noticed that the %USERPROFILE%\.vscode\extensions\cssho.vscode-svgviewer-1.4.4 was still there. I figured this meant that VS Code was disconnected from its extensions path. So I uninstalled and reinstalled VS Code; then uninstalled, reloaded, and reinstalled SVG View. Checked the extension folder again and everything was populated correctly. Working now.

ItsOkayItsOfficial avatar Jul 01 '18 20:07 ItsOkayItsOfficial