Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » occasional bug: copy with CTRL-C sometimes does not work
occasional bug: copy with CTRL-C sometimes does not work [message #160630] Tue, 25 May 2004 15:26 Go to next message
Eclipse UserFriend
Originally posted by: edoardoATenigmatecDOTnet.no.spam

I have noticed this annoying problem since long - I am running M9 linux
gtk on jdk142_04, but a few days ago I saw this on M8 on windows XP.

You work normally in the java editor where ctrl-c and ctrl-v perform
copy and paste.
then, suddenly (often when your java file has currently some errors) you
do another ctrl-v and realize that you pasted something you did not mean
- reason: the last ctrl-c did nothing and the clipboard was still
storing the next-to-last content.

you can try ctrl-c again, but no that does not help.
if you use ctrl-insert and shift-insert OR the copy and paste menuitem
from the edit menu or the context menu everything is fine.

so I suspect that it's the ctrl-C keybinding that gets lost occasionally.

it's likely to be this one:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=60533

anyone seen this? anyone able to reproduce deterministically so this
could get squashed in the RC cycle ?

Edo
Re: occasional bug: copy with CTRL-C sometimes does not work [message #160678 is a reply to message #160630] Tue, 25 May 2004 16:20 Go to previous messageGo to next message
Johan Compagner is currently offline Johan CompagnerFriend
Messages: 148
Registered: July 2009
Senior Member
Yes i have the same.

But it is not really that CTRL-C doesn't work onces But it doesn't work at
all for that text i did select. (hitting multiply times CTRL-C doesn't matter
reselecting that piece of text doesn't matter ect)
It is like that some pieces/constructs the ctrl-c is disabled.

johan


Edoardo Comar wrote:
> I have noticed this annoying problem since long - I am running M9 linux
> gtk on jdk142_04, but a few days ago I saw this on M8 on windows XP.
>
> You work normally in the java editor where ctrl-c and ctrl-v perform
> copy and paste.
> then, suddenly (often when your java file has currently some errors) you
> do another ctrl-v and realize that you pasted something you did not mean
> - reason: the last ctrl-c did nothing and the clipboard was still
> storing the next-to-last content.
>
> you can try ctrl-c again, but no that does not help.
> if you use ctrl-insert and shift-insert OR the copy and paste menuitem
> from the edit menu or the context menu everything is fine.
>
> so I suspect that it's the ctrl-C keybinding that gets lost occasionally.
>
> it's likely to be this one:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=60533
>
> anyone seen this? anyone able to reproduce deterministically so this
> could get squashed in the RC cycle ?
>
> Edo
Re: occasional bug: copy with CTRL-C sometimes does not work [message #160915 is a reply to message #160678] Wed, 26 May 2004 11:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse_newsgroup.canis.NOSPAM.homeip.ne

Johan Compagner wrote:

> Yes i have the same.

> But it is not really that CTRL-C doesn't work onces But it doesn't work at
> all for that text i did select. (hitting multiply times CTRL-C doesn't
matter
> reselecting that piece of text doesn't matter ect)
> It is like that some pieces/constructs the ctrl-c is disabled.

For me, it depends whether I select the text left-to-right or
right-to-left. I suspect the bug lies in either how selection start/end is
defined, or how selections are checked. IOW, the code allows a selection's
end to be before its beginning, and either this is incorrect and it should
swap the two, or this is correct and the copy shortcut is incorrectly
checking to see if end>=start.

This only seems to apply to the Java editor, not plain text editors.
Re: occasional bug: copy with CTRL-C sometimes does not work [message #160955 is a reply to message #160915] Wed, 26 May 2004 13:20 Go to previous messageGo to next message
Johan Compagner is currently offline Johan CompagnerFriend
Messages: 148
Registered: July 2009
Senior Member
> For me, it depends whether I select the text left-to-right or
> right-to-left. I suspect the bug lies in either how selection start/end is
> defined, or how selections are checked. IOW, the code allows a selection's
> end to be before its beginning, and either this is incorrect and it should
> swap the two, or this is correct and the copy shortcut is incorrectly
> checking to see if end>=start.
>
> This only seems to apply to the Java editor, not plain text editors.


aha but that could also be the behaviour i see
Did you file a bug report?

johan
Re: occasional bug: copy with CTRL-C sometimes does not work [message #161008 is a reply to message #160955] Wed, 26 May 2004 15:00 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=57868
Previous Topic:Eclipse Tree Structure
Next Topic:CVS in M9
Goto Forum:
  


Current Time: Sun Jul 21 13:32:02 GMT 2024

Powered by FUDForum. Page generated in 0.03206 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top