Author Topic: Copy to clipboard failing intermittently (19.0.1.1 64 bit Windows 7)  (Read 5548 times)

sndom

  • Community Member
  • Posts: 70
  • Hero Points: 1
With all of the 19.x versions I've tried I'm finding that copy and paste is failing intermittently.  I am using brief emulation mode.  Copying/cutting selected lines with numpad-+/- or ctrl-c/x followed by paste with ins or ctrl-v frequently fails to copy/paste.  I think it is the copy that is failing - I'm not sure if the "line copied to clipboard' notification message is a reliable indicator, but I don't think it appears when things are failing.

Is there something I can use to diagnose this?

Copy and paste works perfectly in other applications.

sndom

  • Community Member
  • Posts: 70
  • Hero Points: 1
Re: Copy to clipboard failing intermittently (19.0.1.1 64 bit Windows 7)
« Reply #1 on: January 27, 2015, 11:49:52 AM »
I've just found the clipboards view.  I'll keep an eye on this to see if I can see what is happening.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Copy to clipboard failing intermittently (19.0.1.1 64 bit Windows 7)
« Reply #2 on: January 27, 2015, 01:57:08 PM »
BTW "line copied to clipboard' is reliable. I'm sure you're also aware of the 'Key not defined' message when hitting the wrong (unbound) shortcut by mistake ;)
HS2

m_glowacki

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Copy to clipboard failing intermittently (19.0.1.1 64 bit Windows 7)
« Reply #3 on: January 27, 2015, 06:53:17 PM »
Oh, hs2, I see that you took it lightly - they have to be hitting a wrong key.
I can confirm that copy to clipboard intermittently fails. I use 18.0.1.2 (not 19) with all the hot-fixes and this problem was there  from the very beginning. I'm not sure about earlier versions - I think it started in 18. I don't remember seeing it earlier.
It doesn't matter what key is bound to what. It doesn't matter what type of copy it is (CHAR/LINE). And the message "line copied to clipboard" is not reliable. It also doesn't matter whether the clipboards tool window is open or not. However, when this window is open we can better see what is (or is not) happening.
So, let's say the clipboards tool window is open.

1. We do a copy to clipboard hitting a shortcut key or executing, from a macro, something like this::
           push_clipboard_itype('CHAR');
           append_clipboard_text("xxxxxxxxx");
           _copy_to_clipboard('', !__UNIX__);
2. In the clipboards tool window we can see that the copied text went there and is shown as the last clipboard. Up to this point it all seems to be fine.
3. Now we  want to paste it. From time to time the paste doesn't work as if there was an empty string in the clipboard (but we see the valid text on the top of clipboards). It doesn't matter where we paste - within SlickEdit or outside.

This doesn't happen often. If it did, I would move to another editor. It seems to be completely random. Sometimes it occurs five times within ten copy/paste sequences and then it works fine for three days for hundreds of seemingly identical cases. It's like  a variable was left without any initialization with the garbage value being most often right.

I see that the person who started this thread is using the Brief emulation mode. I do too. This may be the clue. Not too many people use this emulation these days and it was getting worse and worse in every SlickEdit release.
« Last Edit: January 27, 2015, 07:00:14 PM by m_glowacki »

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Copy to clipboard failing intermittently (19.0.1.1 64 bit Windows 7)
« Reply #4 on: January 27, 2015, 08:20:10 PM »
@m_glowacki: I took it lightly because it happens to me sometimes ;)
On the other hand the problem you're describing reminds me of a similar clipboard bug long time ago.
The reason was that some internal context data of the clip was corrupted in rare cases.
Since this was fixed clipboards were rock solid.
Hmm .. the latest somehow related change were the color coded clipboards. Maybe there was a regression ???
HS2

PS: I'm also using Brief emulation. What else ;)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6934
  • Hero Points: 531
Re: Copy to clipboard failing intermittently (19.0.1.1 64 bit Windows 7)
« Reply #5 on: January 30, 2015, 02:53:37 PM »
If the internal clipboards are invalid, you can load clipbd.e to clear them. (Macro, Load module...).

sndom

  • Community Member
  • Posts: 70
  • Hero Points: 1
Re: Copy to clipboard failing intermittently (19.0.1.1 64 bit Windows 7)
« Reply #6 on: March 03, 2015, 10:49:09 AM »
With the clipboards view open I can see that copy is working, they just won't paste.
Clearing the clipboards sometimes helps, but sometimes it seems to need a restart as well.
I have symbol colouring on.

Is this fixed in 19.0.2 (which I can't test as push-tag seems to be broken in rc1)?

Graeme

  • Senior Community Member
  • Posts: 2812
  • Hero Points: 347
Re: Copy to clipboard failing intermittently (19.0.1.1 64 bit Windows 7)
« Reply #7 on: March 04, 2015, 04:23:07 AM »
With the clipboards view open I can see that copy is working, they just won't paste.
Clearing the clipboards sometimes helps, but sometimes it seems to need a restart as well.
I have symbol colouring on.

Is this fixed in 19.0.2 (which I can't test as push-tag seems to be broken in rc1)?

If you have time you could try a brand new configuration folder vs.exe +new -sc some-new-empty-folder
and see if you still get push-tag and copy paste problems.   You could export all your options from your existing folder and import to the new one.  The idea is to make slickedit create a new vslick.sta file.