Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

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

Open
hugonakamura opened this issue May 23, 2016 · 6 comments

Comments

@hugonakamura
Copy link

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?

@cssho
Copy link
Owner

cssho commented May 25, 2016

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

@hugonakamura
Copy link
Author

hugonakamura commented May 25, 2016

sure! how do I do it?

@cssho
Copy link
Owner

cssho commented May 25, 2016

Please send me following informations.

  • OS
  • VSCode version
  • vscode-svgviewer version

@hugonakamura
Copy link
Author

  • Windows 10
  • VS Code 1.1.1
  • svgviewer 1.1.11

@cssho
Copy link
Owner

cssho commented May 26, 2016

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

@ItsOkayItsOfficial
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants