sketch-hq / svgo-compressor

A Plugin that compresses SVG assets using SVGO, right when you export them.

Home Page:https://www.sketch.com/extensions/plugins/svgo-compressor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to find svgo, also nothing happens when i click on the "about svgo compressor" from the plugins :\

ghaneshrs opened this issue · comments

im not able to find avo.json in my mac...where do i find it ?

nothing happens when i click on the "about svgo compressor" from the plugins, how do i open the svgo.json file to remove the fill attributes

I am having the same issue with version 49.3.

any updates to this ? i have to use icomoon and remove the fill attributes bcoz this plugin isnt working :( desperately looking for a fix to this

Sketch 49.3
SVGO Compressor v1.4.1
Mac 10.11 (El Capitan)

You can right-click the plugin in the Preferences and select "Reveal in Finder", but the config file is at ~/Library/Application Support/com.bohemiancoding.sketch3/Plugins/svgo.json.

Unfortunately, it seems that the plugin isn't working with the latest Sketch. I'm getting the same result as @ghaneshrs when I click "About SVGO Compressor" (nothing happens). On export, I don't get a notification at the bottom of the Sketch window of the status. Nor do I get a prompt to overwrite existing files on export.

I can't reproduce. Is there something written in the logs when you click on About SVGO Compressor (~/Library/Logs/com.bohemiancoding.sketch3/Plugin Output.log)?

@CITguy did u try reinstalling sketch to see if it works ?

@mathieudutour it still doesnt work for me :( how do i open the logs?

image

you would need to wrap the path in ": open "~/Library/Logs/com.bohemiancoding.sketch3/Plugin Output.log"

oh i did that but it says .. I tried reinstalling sketch also to see if it works but didnt work :(

image

i tried this too

image

no output and when i click on "about svgo compressor" from sketch plugin menu nothing happens :(

maybe try open "/Users/ghaneshs/Library/Logs/com.bohemiancoding.sketch3/Plugin Output.log"

still no luck :((

image

i even tried installing older versions of sketch to see if the plugin works but still no luck :(( any workaround at all for this ?

I'm getting the same issue in sketch 50.2.
Tried installs from both Sketch's site and from GitHub, the same result.
Not only am I not getting a modal when doing About SVGO Compressor, but the plugin doesn't seem to work at all.. When attempting to view the about or export an svg, I get a massive code dump in the logs, which seems to be the same.

My colleagues who are running the same version of sketch and SVGO Compressor, but they don't have any issues with it.

Latest Sketch + Older Plugin

Sketch 50.2
SVGO Compressor 1.3.7
Mac 10.13 (High Sierra)

  • I can export
  • I cannot open config from the "about" modal

attempted to open config from "about" modal

ObjC method arrayWithObjects: requires 1 argument, but JavaScript passed 2 arguments
 «Plugin Output»

opened export dialog (cmd+shift+E)

TypeError: null is not an object (evaluating 'exports.count')
line: 30099
sourceURL: ~/Library/Application Support/com.bohemiancoding.sketch3/Plugins/SVGO Compressor.sketchplugin/Contents/Sketch/plugin.js
column: 38
 «Plugin Output»

Latest Sketch + Latest Plugin

Sketch 50.2
SVGO Compressor 1.4.1
Mac 10.13 (High Sierra)

  • I can export
  • I can open config from "about" modal
  • An error shows up in log upon opening the export dialog (cmd+shift+E).
    • It doesn't seem to be breaking anything, though.

opened export dialog (cmd+shift+E)

TypeError: null is not an object (evaluating 's.length')
line: 1
sourceURL: ~/Library/Application Support/com.bohemiancoding.sketch3/Plugins/SVGO Compressor.sketchplugin/Contents/Sketch/plugin.js
column: 252275
 «Plugin Output»

Summary

The only change (besides updating from Sketch 49.3 to 50.2) is that I upgraded from Mac 10.11 (El Capitan) to 10.13 (High Sierra).

Same issue — plugin doesn't work when I export SVG, SVGO Compressor / About SVGO Compressor appears in menu, but nothing happens when I select. Using Sketch 48. I'd like to try an older version of the plugin, but I can't find it.

I am not able to find svgo.json file in my mac OS@10.14.3 with the svgo@1.7.0 plugin for Sketch@52.3.

Finally I get the svgo.json file after I click theReset SVGO Setttings button.