question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Smartbar copying/cutting doesn't fully copy long blocks of text

See original GitHub issue

“Short” description

When copying or cutting long blocks of text using the smartbar’s Copy or Cut button, only a short portion of the text block gets copied. However, when copying or cutting short blocks of text, the text block is fully copied.

Sometimes, though, the clipboard becomes empty instead. Pasting (whether using the device’s builtin copying menu or the smartbar’s Paste button), then, would paste nothing.

The debug artifact that the bug first occurs in is PR #966’s artifact. The bug doesn’t occur in PR #963’s artifact.

The bug occurs regardless of the application used. I tested PR <span>#</span>966’s artifact as well as PR <span>#</span>963’s with three note-taking/text editing apps. In all three, the bug occurred for <span>#</span>966’s artifact but didn’t occur for <span>#</span>963’s artifact. If the need for testing arises, I’ve listed the three apps below.

The bug also doesn’t occur even if the smartbar’s Select All or Paste button was used along with the device’s builtin selection copying menu. The bug, then, seems to occur because of the copying/cutting mechanism of the keyboard itself and not because of its pasting or selecting-all mechanism.

I’m not certain whether this bug is the same bug as described in #1027 or #1083. However, there is past discussion of this bug in <span>#</span>1027, where <span>@</span>Glitchy-Tozier was unable to reproduce it in 0.3.13-beta06.

Long lorem ipsum (example long text block)
Est incidunt exercitationem reprehenderit ipsam expedita. Iusto aliquid ut quas inventore. Ex consequatur voluptatem quaerat quas dolor.

Et aut nobis laudantium explicabo aut ipsam quisquam debitis. Sint repellendus consequatur dicta est molestias fugit. Voluptatem quod velit est repellendus nobis rerum tempore. Expedita saepe non perferendis porro. Enim esse dicta velit. Dolores est tempora voluptas dolorem quis commodi distinctio assumenda.

A et at et. Dolore ad accusamus consequatur nihil debitis maxime animi. Ratione molestiae assumenda dolorem facere. Quae voluptatem quaerat magni et. Dolorem esse sed aut.

Voluptatem suscipit voluptatem mollitia officiis porro. Laudantium id dolorem molestias rem aperiam eos. Provident voluptas praesentium sunt reiciendis molestiae. Sint numquam similique earum animi dolorum eos. Eveniet dolorem natus est.

Vel omnis asperiores voluptatem enim eum ea quisquam. Numquam assumenda cupiditate sequi nostrum possimus blanditiis est. Explicabo necessitatibus sit rerum dignissimos voluptatem. Nemo maiores ipsa molestiae. Et non minus omnis esse facilis error doloribus sed. Quia modi harum omnis fugit expedita.

Molestiae qui officiis earum saepe ut. Assumenda et voluptas facere. Cupiditate dolores iste accusamus quia aliquam perferendis dolores beatae. Dolorem quo sint officia omnis. Magnam veritatis sit porro. Voluptatibus quos perspiciatis quam repellendus explicabo.

Ipsam repellendus deserunt in voluptas aut eveniet tempora omnis. Dolorum aut molestiae ut dolores quo officiis. Laboriosam autem dolorem est aut voluptatibus nihil. Quo fugit vero velit mollitia et rerum. Itaque et et pariatur impedit qui expedita tenetur ex. Autem nulla eum id aperiam architecto alias.

Similique quaerat molestias voluptatem cum. Inventore cum consequuntur dicta enim nobis eligendi facilis rerum. A praesentium delectus odio vero. Adipisci eos rerum doloribus quidem voluptate dolorem minus assumenda.

Reiciendis ut saepe quidem. Placeat dolor facilis neque aut voluptas. Commodi sit minima ex. Animi rerum ratione cupiditate consequuntur. Porro molestiae dolore deleniti. Sint praesentium cumque sunt ipsam amet voluptates ducimus.

Delectus omnis in nisi laborum saepe modi. Ad non sunt est rerum est. Illum itaque quae ipsam deleniti dolorem. Voluptas et libero optio eos ipsa. Sed possimus ut voluptate. Nihil perspiciatis nisi enim.
Remaining lorem ipsum portion after copy/cut and paste
 itaque quae ipsam deleniti dolorem. Voluptas et libero optio eos ipsa. Sed possimus ut voluptate. Nihil perspiciatis nisi enim.

(128 characters long, for some reason)

Apps used for testing

Steps to reproduce

  1. Go to a text box where typing is possible.
  2. Copy the example lorem ipsum text above and paste it into the text box using the device’s builtin copying menu.
  3. Select all of the text box’s text.
  4. Copy or cut the text using the keyboard’s Copy or Cut button in the smartbar. (The bug occurs with either copying or cutting.)
  5. Paste the text. (Using the keyboard’s Paste button is fine as it shouldn’t influence the resulting pasted text.)

Environment information

  • FlorisBoard Version: 0.3.13-debug (artifact from PR #966)
  • Install Source: GitHub
  • Android: 10

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
patrickgoldcommented, Aug 14, 2021

Above PR #1154 should be a fix for the bug. I have just tested it out on my device and it seems to work. I will perform further testing though if it also works for some edge cases. <span>@</span>KLaurence or anyone interested: could you also try out the debug artifact if it works for you to confirm it’s fixed?

2reactions
Glitchy-Toziercommented, Aug 11, 2021

I love how well you put together your issues. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copying and pasting blocks and elements - HoneyBook
Use a keyboard shortcut: Command + C (Mac) or Control + C (PC). Select the three-dot icon to the top right of the...
Read more >
A Linguistic Characterisation of Design in Text-Based Virtual ...
There is a Smart bar tucked away under a low rafter beam and ... 36: player:tell("Please, check the detail you have copied carefully....
Read more >
Untitled
Prezi templates for sale, Klaus himym speech, Promos of talk n text internet, ... Long hair v cut back, Pc on a mac...
Read more >
EngraveLab 9 User Guide - Newing-Hall
is furnished under license and may only be used or copied in accordance with the ... Expert Text Compose Mode - The SmartBar...
Read more >
Auto Email messages - The SmartDesk
The text of both of these messages is fully editable and can be personalized differently for each of your Contacts (if you want...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found