-
Notifications
You must be signed in to change notification settings - Fork 20
Once Detached—Unable to Create Styles #32
Comments
Hey @MarkThomasJohnson, thank you so much for providing such accurate description! 🙏 I've tried to replicate the problem, but everything seems to work well here. Am I missing anything / misunderstood your issue? |
Hey @lucaorio for sure! 👍 It appears you're using the newest version of Sketch, so perhaps that solves it, or my file is somehow moderately broken. I can't really pin down why it won't work within this particular file. I tried doing this exact thing you did with another file and it worked as usual. It's just weird that it won't create any new styles within this file anymore. I tried to reproduce this bug in a new file, but I can't reproduce the exact issue. I'm not totally sure what caused it to break. My steps in general was taking multiple text layers (8ish layers) with a text style applied. Adjusting the text layers first, then renaming, then duplicating that new set of 8, doing the same until I was at ~64 styles total. Then detaching the text styles (as they were all the original style with an override applied effectively) then trying to use the plugin, it didn't work. And if I tried to just use the plugin without detaching it would just apply one style to all of them (update all styles to match somehow). Is there anything else helpful I can try to do? |
I think the last behavior you were describing is intended. From the FAQ:
I don't know what's going on in your file, I would have to open and take a look at the ids in order to understand. If you were previously using an older version, and it was working well, you still have access to all of them from this page: https://github.com/lucaorio/sketch-styles-generator/releases |
I'm having a similar issue. I created a few color styles and then cleared out the text styles before creating a new one and the plugin would not prompt successful. Reverted back to 1.4 to get it back in working order. |
@MarkThomasJohnson @kst0rm Could you please install Sketch Dev Tools, and let me know if any error is triggered? |
@MarkThomasJohnson @kst0rm I'm closing this, but please let me know if you had any chance to run the Sketch Dev tool 👍 |
Summary
I believe once you detach a text style from a layer, the plugin is unable to create new text styles for the any new or existing layers which have no text style applied. As in, the file is no longer able to "Create" new styles. You are however, able to update layers with existing styles.
Example:
Figure 1: Selecting text laters and attempting to create from both the menu and the hotkey yielded no results.
Troubleshooting/Pinning down the issue:
Quick Fix / Alternate Path
I found by copying the detached style layers (properly named), and pasting them in a new file—I was able to generate the styles there. Following that I then copy/pasted them back into the origin file and the styles transferred. So this may mean I have a Sketch or file corruption issue in some way, but I'm not certain.
Hope this info is helpful.
The text was updated successfully, but these errors were encountered: