CSSketch icon indicating copy to clipboard operation
CSSketch copied to clipboard

Broken by Sketch 3.9 with "Set Page's Stylesheet" selection loop.

Open nbiehl opened this issue 8 years ago • 13 comments

CSSketch no longer functions with the Sketch 3.9 update. Attempting to assign a stylesheet to a sketch doc results in a selection loop:

  1. Open a sketch doc. In this case the Keyboard.sketch example.
  2. Select "Plugins" > "CSSketch" > "Set Page's Style"
  3. Finder opens > Navigate to and select Keyboard.less stylesheet > Click "Choose"
  4. After clicking the "Choose" button, it becomes disabled.
  5. Reselect Keyboard.less > Click "Choose"
  6. GoTo # 4 and repeat infinitum.

nbiehl avatar Jul 20 '16 19:07 nbiehl

I had this problem too

fadlee avatar Jul 22 '16 02:07 fadlee

Hi, I have the same problem here. Sketch 3.9.1

bichinl avatar Jul 28 '16 18:07 bichinl

+1 same problem. Sketch 3.9.1

@JohnCoates , I would love to help, but don't know where to start. Seems like the plugin fails to get the stylesheet URL. Or am I digging at the wrong place? Really appreciate your help here

rezki-olx avatar Aug 06 '16 18:08 rezki-olx

Ok thats why nothing happens when i try to use this plugin 🎯

fredDesign avatar Aug 10 '16 15:08 fredDesign

Daaaaamn! To good to be true...

Do you think you can do something @JohnCoates ?

@rezki-olx Please do something !

aaadryyy avatar Aug 10 '16 17:08 aaadryyy

+1

shendrick avatar Aug 11 '16 20:08 shendrick

+1

Davst avatar Aug 24 '16 08:08 Davst

+1 does not work in Sketch 3.9.1

kamil-borkowski avatar Aug 24 '16 09:08 kamil-borkowski

Let's try to debug to see where the mismatch is... Don't just complain ;)

kristianmandrup avatar Aug 28 '16 18:08 kristianmandrup

+1 any updates on this?

hendrykj avatar Sep 08 '16 09:09 hendrykj

Having the same issue with Version 4.0.1.

Also console is showing this error, not sure if it is related: image

Appreciate your help in solving this @JohnCoates

ghost avatar Sep 27 '16 23:09 ghost

same here

eliteproxy7 avatar Oct 14 '16 03:10 eliteproxy7

I'm trying to debug this issue. It seems like the context argument of (void)selectStylesheetWithContext:(NSDictionary *)context Is always an empty dictionary. The dictionary should contain a document and a command property to make the connection between the css and the sketch file.

The strange thing is that the context does has value in the CSSSketch.js file but it gets lost when its send to CSKMainController.selectStylesheetWithContext.

I'll try to fix the issue but I'm new with sketch plugin development so any hints or tips might come in handy.

samueljoos avatar Oct 21 '16 07:10 samueljoos