Undo, Cut, Paste don't work in Windows Code Editor
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Undo, Cut, Paste don't work in Windows Code Editor
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.
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Undo, Cut, Paste don't work in Windows Code Editor
This is one of the reasons various people have been talking about an ability to hook up an external script editor.
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Undo, Cut, Paste don't work in Windows Code Editor
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.
"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.
-
- VIP Livecode Opensource Backer
- Posts: 7215
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Undo, Cut, Paste don't work in Windows Code Editor
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.
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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Undo, Cut, Paste don't work in Windows Code Editor
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?
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
What error do you get and when?D4vidrim wrote:...sometimes I get an error and it appears to be related with the "set the clipboardData" not working properly.
It MIGHT help if we knew
Re: Undo, Cut, Paste don't work in Windows Code Editor
I will post it as soon as I get it again, it's a random error.
thank you!
thank you!
Re: Undo, Cut, Paste don't work in Windows Code Editor
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.
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:
Code: Select all
set the clipboarddata to tData
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:
Code: Select all
set the clipboarddata to "pippo"
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
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
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
-
- VIP Livecode Opensource Backer
- Posts: 7215
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Undo, Cut, Paste don't work in Windows Code Editor
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.
The biggest problem when reporting it is probably providing a repeatable recipe.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Undo, Cut, Paste don't work in Windows Code Editor
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?
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
Am I the only person who has found this bug?
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Undo, Cut, Paste don't work in Windows Code Editor
Is this reproducible in the latest build of LC, and a supported Windows version?D4vidrim wrote:Unfortunately I still get the same bug... quite often on Windows XP.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Undo, Cut, Paste don't work in Windows Code Editor
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
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
Same problem on LC 7.0.5 and Windows XP.