CSSketch
CSSketch copied to clipboard
Broken by Sketch 3.9 with "Set Page's Stylesheet" selection loop.
CSSketch no longer functions with the Sketch 3.9 update. Attempting to assign a stylesheet to a sketch doc results in a selection loop:
- Open a sketch doc. In this case the Keyboard.sketch example.
- Select "Plugins" > "CSSketch" > "Set Page's Style"
- Finder opens > Navigate to and select Keyboard.less stylesheet > Click "Choose"
- After clicking the "Choose" button, it becomes disabled.
- Reselect Keyboard.less > Click "Choose"
- GoTo # 4 and repeat infinitum.
I had this problem too
Hi, I have the same problem here. Sketch 3.9.1
+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
Ok thats why nothing happens when i try to use this plugin 🎯
Daaaaamn! To good to be true...
Do you think you can do something @JohnCoates ?
@rezki-olx Please do something !
+1
+1
+1 does not work in Sketch 3.9.1
Let's try to debug to see where the mismatch is... Don't just complain ;)
+1 any updates on this?
Having the same issue with Version 4.0.1.
Also console is showing this error, not sure if it is related:
Appreciate your help in solving this @JohnCoates
same here
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.