baptiste-roullin / data-from-clipboard

A Sketch plugin to populate a bunch of layers from a list of text in the clipboard
25 stars 1 forks source link

Paste order randomised #9

Open edclark1994 opened 1 year ago

edclark1994 commented 1 year ago

The paste order is now randomised in Sketch 94.1. This plugin used to work perfectly for large datasets, populating table data.

edclark1994 commented 1 year ago

@baptiste-roullin I'd really really appreciate it if you could look into this for me and my team. Your plugin is so vital to speeding up our workflow, it's something we really can't do without!

baptiste-roullin commented 1 year ago

Hi,

Sorry I will look into it.

In the meantime you can still try to remove the plugin, delete all caches and reinstall, if you haven't done it already.

A bit of context: I no longer use Sketch and the API the plugin uses are supposed to be more or less stable. So I don't often keep tabs.

I may add a "looking for a new project maintainner" banner in the readme of this Github.

baptiste-roullin commented 1 year ago

Hi, sorry for the delay.

I can't reproduce the problem.

  1. I install Sketch 94.1
  2. I install the plugin (the zip from this Github).
  3. I run the plugin with plain text layers or text layers in several symbols.
  4. Every text is in order.

I used simple latin text and dead simple symbols (symbols with one text layer each).

Do you have specific use cases, complex symbols or something that this plugin doesn't cover and could explain the problem?

edclark1994 commented 1 year ago

Hi Baptiste,

Sorry for the delayed reply, I've been away on holiday.

I've cleared uninstalled and cleared all caches as you said, but the issue still persists. The symbol I'm using isn't complex, it's only made up of a text layer and shape layer. I've attached a screenshot of the current behaviour. As I said before, this was working perfectly for me for a very long time, but all of a sudden it doesn't seem to work

[https://res.cdn.office.net/assets/mail/file-icon/png/zip_16x16.png]Screen Recording 2022-12-13 at 10.05.46.mov.ziphttps://1drv.ms/u/s!ArYiFrw9FpubjFK9fMO97t7FjTEx

Kind Regards, Ed


From: Baptiste @.> Sent: 02 December 2022 11:44 To: baptiste-roullin/data-from-clipboard @.> Cc: edclark1994 @.>; Author @.> Subject: Re: [baptiste-roullin/data-from-clipboard] Paste order randomised (Issue #9)

Hi, sorry for the delay.

I can't reproduce the problem.

  1. I install Sketch 94.1
  2. I install the plugin
  3. I run the plugin with plain text layers or text layers in several symbols.
  4. Every text is in order.

I used simple latin text and dead simple symbols (symbols with one text layer each).

Do you have specific use cases, complex symbols or something that this plugin doesn't cover and could explain the problem?

— Reply to this email directly, view it on GitHubhttps://github.com/baptiste-roullin/data-from-clipboard/issues/9#issuecomment-1335121330, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4GHEMBAUS44X6WLNIEX5XTWLHOI3ANCNFSM6AAAAAASAVQR74. You are receiving this because you authored the thread.Message ID: @.***>

edclark1994 commented 1 year ago

Hey, was there any resolution to this? I've also had a few members of my team test this with the same results. Running Monteray OS and now on sketch 95.2. I would really appreciate it.

Kind Regards, Ed

baptiste-roullin commented 1 year ago

Hi, thanks for the video, it helped me understand the problematic case.

The issue happens when you try to supply data to an override when the whole symbol is selected. It doesn't happen when you select a specific text layer.

I don't know exactly why the bug appeared, but I suspect it has to do with the overhaul of the override panel.

I can't find a workaround for this. The specific override one chooses on the right panel is not exposed to the Selection or Data Supply API. I couldn't find anything by exploring private Obj-C classes, but I'm pretty bad with those.

Some similar plugins I tried have the same problem, or don't use the Data Supply API.

A new release for the plugin blocks the "ordered" command when a symbol is selected and displays a message.

For now, this message and urging you to directly select text layers are the only (really partial) solution I can offer.