cssho / vscode-svgviewer

SVG Viewer for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=cssho.vscode-svgviewer
MIT License
67 stars 20 forks source link

Unable to convert SVG to PNG on OS X #17

Closed bulyshko closed 8 years ago

bulyshko commented 8 years ago
spawn /Users/USERNAME/.vscode/extensions/cssho.vscode-svgviewer-1.1.11/node_modules/phantomjs/lib/phantom\phantomjs.exe ENOENT
cssho commented 8 years ago

Workaround : npm rebuild on /Users/USERNAME/.vscode/extensions/cssho.vscode-svgviewer-1.1.11/

bulyshko commented 8 years ago

@cssho Why would one need a workaround? This should work after installation.

cssho commented 8 years ago

@bulyshko Exactly. I will examine the handling of that.

g3o2 commented 8 years ago

This feature does still not appear to work. A message appears after Export PNG specifying the path of the supposed .png file but there's nothing. I've installed the latest release (1.1.12) in vscode 1.4.0 on Mac OS X 10.11.6.

kexi commented 8 years ago

as well as Ubuntu16.04LTS (Node.js not installed).

@Georgeouz

launch terminal then type

which npm

if no result,

Solution 1

install Node.js first, and then restart vscode. because of using npm command to export png.

Solution 2

download vsix https://github.com/kexi/vscode-svgviewer/releases/tag/20160902 launch terminal to install vsix, then type

code vscode-svgviewer-1.1.12.vsix

use "(Experimental) Export PNG" menu to export PNG.

I'm working on #19 .