nilshoenson/shared-text-styles

Import broken in 1.6.2

Closed this issue · 22 comments

When I export styles with 1.6.2 I can't import them in a new file. After selecting a .json file and confirming, nothing happens. I'm using the most recent version of Sketch and plugin.

I have the same problem. Plugin 1.6.2 and sketch 48.2.

Can you guys show me the error you get after running the command by opening Console.app and filtering on Sketch? Everything seems to be working on my end.

image

Can't show the error because after selecting any .json file to import and confirm, nothing happens, no massages, nothing.

I can confirm there is no error message or any other sign that something is wrong. Nothing happens.

✅ loadFramework: SMFramework success! «Plugin Output»
NSConcreteNotifyingMutableAttributedString addAttribute:value:range:: nil value
«Plugin Output»

I'm having the same issue

Same issue here.

+1 Having the same issue

Not sure if I'm doing it right, bc I'm not seeing what @kharrop is, but here's mine after trying to import .json from Dropbox (Sketch 48.2, plugin 1.6.2):

discovered extensions

SFBrowserCallBack (node = <SFNode 0x6000018eb680>{domain = Network})

calling plugIn beginUsing:

calling plugIn beginUsing:

completed calling plugIn beginUsing: for pid: 6589

completed calling plugIn beginUsing: for pid: 6588

Connection to sharingd became invalid

-[MOUndefined _getValue:forType:]: unrecognized selector sent to instance 0x600000014c90

<MSConstantBaselineTypesetter: 0x608000d8a4f0>: Exception -[MOUndefined _getValue:forType:]: unrecognized selector sent to instance 0x600000014c90 raised during typesetting layout manager <MSConstantBaselineLayoutManager: 0x7fa60d1e8530>
1 containers, text backing has 38 characters
selected character range {0, 0} affinity: upstream granularity: character
marked character range {0, 0}
Currently holding 38 glyphs.
Glyph tree contents: 38 characters, 38 glyphs, 1 nodes, 64 node bytes, 256 storage bytes, 320 total bytes, 8.42 bytes per character, 8.42 bytes per glyph
Layout tree contents: 38 characters, 38 glyphs, 0 laid glyphs, 0 laid line fragments, 1 nodes, 64 node bytes, 0 storage bytes, 64 total bytes, 1.68 bytes per character, 1.68 bytes per glyph, 0.00 laid glyphs per laid line fragment, 0.00 bytes per laid line fragment
, glyph range {0 38}. Ignoring...

-[MOUndefined _getValue:forType:]: unrecognized selector sent to instance 0x600000014c90

Exception: -[MOUndefined _getValue:forType:]: unrecognized selector sent to instance 0x600000014c90

-[MOUndefined _getValue:forType:]: unrecognized selector sent to instance 0x600000014c90

UNIX error exception: 17

Same issue...
Sketch Version 48.2
Shared Text Styles 1.6.2

epun commented

Same issue here also on:
Sketch Version 48.2
Shared Text Styles 1.6.2

Experiencing the same issue as others describe above.
Sketch Version 48.2
Shared Text Styles 1.6.2

I just pushed a new version, which should fix this.

Thanks, @nilshoenson! Works great!

I can also confirm that it now works great! Thanks @nilshoenson!

Same issue here.
Sketch 49.1
Plugin 1.6.2
4/3/18 1:06:33.932 PM Sketch[46881]: Exception: NSConcreteNotifyingMutableAttributedString addAttribute:value:range:: nil value

@nilshoenson - Nuts! This is happening again.

screen shot 2018-05-10 at 11 19 10 am

Sketch 50
Plugin 1.6.3

I'm having this issue as well. When I attempt to import the json file from Dropbox nothing happens. No error message. Everything appears to be normal, however when I try change text style the new imported text styles are not there.

Sketch 50.2
Plugin 1.6.3

I am having the same issue.

Sketch 50.2
Plugin 1.6.2

I am having the same issue.

Sketch 50.2
Plugin 1.6.3

+1 on the issue, same behavior. Re-installed both through Sketch plugin manager and Sketch itself, no luck. I had been working in the same project files for a while, so I can't say when exactly it started to happen, but last import before this was probably a few weeks back.

Sketch 50.1
Plugin 1.6.3

Great plugin BTW.

Got the latest update (1.7.0) and it works perfect again! Thank you for your help 👍