Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362306

Summary: Ctrl-click actions within a file lock the file from making changes until you change focus and then come back
Product: [Eclipse Project] Platform Reporter: brendan.callahan
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, Michael_Rennie
Version: 3.7.1Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description brendan.callahan CLA 2011-10-28 09:34:35 EDT
When I am editing a file, and making changes where i use ctrl-c, ctrl-x, ctrl-v, ctrl-z, ctrl-y, I am running into a situation where the file I am currently editing gets locked from any further changes. The file remains locked until I change focus (by either switching to another file within eclipse and switching back, or switching to another open window like firefox and coming back). 100% of the time I can reproduce this with the following action: copy a piece of text somehow, paste it twice somehow, and then hit ctrl-z twice. The first ctrl-z undo's the previous action as it should, but also locks the file, preventing the second ctrl-z, or any other subsequent change going through until you change focus and come back.

I am using 64 bit eclipse indigo sp1 on a 64 bit Debian GNU/Linux 6.0.3 (squeeze).
I can reproduce the problem fairly easily and can provide any additional details, or run with any logging parameters on, just let me know.


-- Configuration Details --
Product: Eclipse 1.4.1.20110909-0613 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.platform 3.7.1.r37x_v20110729-9gF7UHOxFtniV7mI3T556iZN9AU8bEZ1lHMcVK
Comment 1 Michael Rennie CLA 2011-10-28 11:33:13 EDT
(In reply to comment #0)
> When I am editing a file, 

What kind of file are you editing? Can you post an example file that produces the problem?
Comment 2 brendan.callahan CLA 2011-10-28 11:45:24 EDT
(In reply to comment #1)
> (In reply to comment #0)
> > When I am editing a file, 
> 
> What kind of file are you editing? Can you post an example file that produces
> the problem?

Sorry, I should have specified, initially I noticed the problem with .rb files.

I then tried with java files, haml files, plain text files, and the result is always the same. Every file I view, the problem occurs, it seems file type agnostic. If you still want, I could post an example file with the problem, just let me know

A few additional details which I also forgot. I have the aptana studio and gwt plugins installed (latest versions, if you need details just ask). The problem happens in projects that use those plugins, and projects that don't use those plugins (i created a plain java project to test out the theory).
It seems to be an eclipse-wide behavior, which is why I reported it to eclipse's bugzilla rather than for any particular plugin. I have not yet tried uninstalling/reinstalling the plugins, or trying to edit files with no plugins installed.
Comment 3 Michael Rennie CLA 2011-10-28 12:54:33 EDT
(In reply to comment #2)
> 
Thanks for reporting back Brendan, moving to Text as this seems to have nothing to do with Ant specifically.
Comment 4 brendan.callahan CLA 2011-10-28 13:24:08 EDT
My bad on that one, I thought I had chosen some categories for it. I guess it defaulted to Ant.
Comment 5 Dani Megert CLA 2011-10-31 06:25:05 EDT
Brendan, I cannot reproduce this in 3.8 M3 or 4.2 M3 (Windows & Linux). Please download one of those builds:

http://download.eclipse.org/eclipse/downloads/drops/S-3.8M3-201110271800/index.php
http://download.eclipse.org/eclipse/downloads/drops4/S-4.2M3-201110281100/index.php

and start with a new workspace. From there add the exact steps to this bug which allow you to reproduce the problem. For example, the summary mentions "Ctrl+Click" but this is not mentioned later in any comment. Please reopen the bug after attaching the steps.