Page 1 of 1

Typing in Workspace bug [FIXED]

Posted: Jul 6th, '16, 20:30
by mguzdial
I finally was able to capture a UI bug I've been facing for awhile.

I convert a stack of blocks to a text block and place the cursor in the middle of the word. (It only seems to happen in the middle of the word, not at the end of a word or when selecting a whole word with a double-click.)
Workspacebug1.png
Workspacebug1.png (10.41 KiB) Viewed 14905 times
Notice that the cursor is after the "f" in fftOfSamples.

Hit the delete key once.
Workspacebug2.png
Workspacebug2.png (9.86 KiB) Viewed 14905 times
The "O" disappears. The cursor still appears after the "f." If I keep hitting delete, the "t" of "fft" will disappear. It's always off-by-one.
Workspacebug3.png
Workspacebug3.png (10.29 KiB) Viewed 14905 times
But as I say, it's not consistent, so I always have to hit delete once cautiously, see what disappeared, and then continue or change my typing/replacing strategy.

Re: Typing in Workspace bug

Posted: Jul 7th, '16, 13:36
by JohnM
Thank you for this excellent test case. I have also seen this problem, but I could never reproduce it reliably.

Starting with your example, I gradually removed blocks until I created a fairly small test case that reliably exhibits the problem:
Screen Shot 2016-07-07 at 9.33.03 AM.png
Screen Shot 2016-07-07 at 9.33.03 AM.png (17.5 KiB) Viewed 14901 times
After converting this to text and positioning the cursor as Mark describes, deleting is off by one.

(Jens, the "for" loop seems to be needed to re-create this problem, so the problem might have something to do with the handling of indentation when converting to text.)

Re: Typing in Workspace bug

Posted: Jul 12th, '16, 08:32
by Jens
Excellent test case, I can totally reproduce this bug, thanks for hunting it down, Mark and John. Working on a fix now...

Re: Typing in Workspace bug

Posted: Aug 1st, '16, 14:40
by JohnM
Fixed in v54.