Page 1 of 2
Undo, Cut, Paste don't work in Windows Code Editor
Posted: Sun Oct 20, 2013 12:17 am
by hcs
I'm wondering if I'm the only one to experience this problem. Editing code in the Windows version of LiveCode 6.1.2, and the Cut/Copy/Paste and Undo functions don't work properly. Undo gets its history mixed up if you try to undo more than a couple of changes, and Cut will delete your selection but not put it into the clipboard. Because LiveCode is (inexplicably) stored as binaries rather than text, I don't have the option of using a more reliable text editor, so this makes for an extremely aggravating editing process. Having to retype whole swathes of code because I forgot that this basic functionality is missing is making LiveCode seem very painful indeed.
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Thu Oct 31, 2013 9:27 am
by richmond62
This is one of the reasons various people have been talking about an ability to hook up an external script editor.
LC_gadfly.png
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Thu Oct 31, 2013 9:48 am
by richmond62
So, I installed LC 6.1.2 on Windows XP and found something that is a bit odd: according to your posting 'hcs'
"Undo gets its history mixed up if you try to undo more than a couple of changes"
but I found that the script editor does not allow multiple undos.
LC_gadfly.png
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Thu Oct 31, 2013 5:27 pm
by jacque
I work primarily on Mac, but I can use multiple undos in the script editor. Since it's the same stack on all operating systems, I'd be surprised if it weren't supported on all platforms. There's sometimes a disconnect between the keyboard shortcuts and the menu items though, not only in the script editor but throughout the IDE. What happens if you use the menus directly instead of the keyboard?
I have also seen undo get confused when I use my own custom backscript that inserts characters without the script editor's knowledge -- but I expect that because I'm operating behind its back. Otherwise undo works okay here.
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Fri Dec 20, 2013 9:56 pm
by D4vidrim
Not sure if it is related, but sometimes even the "set the clipboardData" stops working.
On these occasions, the copy&paste does not work on the windows code editor.
Same issue if I execute the compiled code, sometimes I get an error and it appears to be related with the "set the clipboardData" not working properly.
Is it a bug?
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Sat Dec 21, 2013 1:09 am
by Klaus
D4vidrim wrote:...sometimes I get an error and it appears to be related with the "set the clipboardData" not working properly.
What error do you get and when?
It MIGHT help if we knew

Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Sat Dec 21, 2013 9:42 am
by D4vidrim
I will post it as soon as I get it again, it's a random error.
thank you!
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Mon Dec 23, 2013 10:26 am
by D4vidrim
Hi,
the error I get is:
execution error at line 376 (set: can't set property) near "dom 27/10 00", char 1
the line is:
where tData is just a string with some lines of text.
This kind of error happens only when the copy&paste stops working on the editor, otherwise the code works perfectly fine.
By the way, I'have also tried opening the Message Box and execute this simple code:
I get this error:
Message execution error:
Error description: set: can't set property
Hint: pippo
Hope anyone could find a solution.

Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Mon Dec 23, 2013 12:20 pm
by Klaus
Hi David,
hmmm, the dictionary leaves no doubt about the fact the "clipboarddata" is in fact an ARRAY!
So:
...
set the clipboarddata["text"] to "pippo"
...
Should do the trick.
Best
Klaus
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Mon Dec 23, 2013 6:16 pm
by jacque
It looks like a bug. I often use "the clipboarddata" without array syntax, because the default is to assume "text". So I suspect the bug is in the loss of the clipboard functionality, though it's good practice to use array syntax anyway.
The biggest problem when reporting it is probably providing a repeatable recipe.
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Wed Jun 17, 2015 12:05 am
by D4vidrim
Unfortunately I still get the same bug... quite often on Windows XP.
I couldn't find any recipe to re-iterate the bug, it just kind of happens sometimes, then I must close LC and reopen it to make the copy& paste to work again.
Any solution so far?
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Thu Jun 25, 2015 8:50 pm
by D4vidrim
Am I the only person who has found this bug?
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Thu Jun 25, 2015 9:00 pm
by FourthWorld
D4vidrim wrote:Unfortunately I still get the same bug... quite often on Windows XP.
Is this reproducible in the latest build of LC, and a supported Windows version?
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Mon Jun 29, 2015 4:59 pm
by D4vidrim
The bug is still there on LC 7.0.4.
Today I've downloaded the 7.0.5 and in the next days I will check if the bug is still present on the last version of LC.
Unfortunately I've found no way to reproduce it. It happens quite often, but not a clear way to reproduce it.
The standard file dialog for the user to choose a folder stops working at the same time too.
Hope this helps.
Davide
Re: Undo, Cut, Paste don't work in Windows Code Editor
Posted: Wed Jul 08, 2015 2:24 pm
by D4vidrim
Same problem on LC 7.0.5 and Windows XP.
