No handler found for the command: 'svgviewer.open'. An extension might be missing an activation event.
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?
It's not reproducible on my machine. Could you please send me your enviroment ?
sure! how do I do it?
Please send me following informations.
- OS
- VSCode version
- vscode-svgviewer version
- Windows 10
- VS Code 1.1.1
- svgviewer 1.1.11
Ummm... Your environment is the same as me. Try reinstall a extension or clone this repository and debug it
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.