| Summary: | [DND] Eclipse deletes files when attempting to move them to the root project directory | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | stone1549 | ||||
| Component: | IDE | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | Eric Moffatt <emoffatt> | ||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | remy.suen, stone1549, todorskia | ||||
| Version: | 4.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
stone1549
Created attachment 178656 [details]
The project with the strange issue
I've also confirmed that you can right click on SystemUtilities.properties.test (package view) select "Copy" then paste it into the WebContent directory and it will delete the original after copying it to WebContent. Unchecking "build automatically" in Window -> Preferences -> General -> Workspace appears to resolve the issue. First observation is that you can get it back using 'Undo'... Is the behavior consistent ? I did (I think) see the problem on my very first try but every other attempt has worked as expected. I've cleaned the WS and re-extracted the project to a completely different directory (in case I was being saved by some internal file system cache). I'm using I20100608-0911 but don't expect that to make much difference. I'm also on XP which may... The behavior appears to be consistent on our end. I tested this by creating three workspaces and extracting a copy of the attached sample project in each one. I then opened each workspace, imported the project, and move SystemUtilities.properties.test to the WebContent directory and back to the root directory. In each instance the file was deleted. I am also able to create new files in the root of the project and reproduce the issue by moving the new file to WebContent and then back to the root. On top of that, copying the file by right clicking it, then pasting it into WebContent causes the file in the root directory to be deleted. These tests were done on the latest version of Ubuntu, and we previously consistently reproduced the issue in Windows Vista and Windows 7. I may be able to track down an XP machine to test with. This problem has cost me several days worth of work. I am developing on Debian Linux and also experienced it with a dynamic web project. I tried to move an entire package from the root of a source folder (src/main/java) of one project to the root of another project (also src/main/java) via drag and drop and to my surprise the source package was gone (from harddisk too, but still in Local History and thus recoverable) and the destination project had an empty package with the last segment cut off ie. if org.a.b.c.d was source then org.a.b.c was on destination and empty The package was basically deleted from source project, and never copied/moved to destination project. Was nowhere on the harddisk. After recovery, Ctrl+C on source package in project 1, and Ctrl+V on destination source folder in project 2 worked. I'd suggest to not delete the source package unless the first part (copying it to destination location) completed successfully. Seems to me the second part (delete from source) was executed regardless of first part's success. Please fix this! I believe it's the third time I've experienced it since I've been using eclipse (it's just that it's been a while since the first two times to even remember). Thanks! PS: was using: Eclipse SDK Version: 4.1.0 Build id: M20110804-1800 Looks like what I said only happens when both projects are under EGIT, and so it's unrelated to this bug. Disregard my comment then. Sorry. This appears to be fixed in Indigo. I attempted to duplicate the issue using Eclipse Indigo (64 bit) with build id 20110615-0604 on Ubuntu 11.04 (64 bit) and was unable to do so. (In reply to comment #9) > Looks like what I said only happens when both projects are under EGIT, and so > it's unrelated to this bug. Disregard my comment then. Sorry. For referencing purposes, the EGit bug is bug 354293. (In reply to stone1549 from comment #0) > Build Identifier: 20100617-1415 > > I have a project where copying a file from a interior directory to the root > project directory causes the file to be deleted. This behavior has been > observed in multiple Operating Systems and versions of Eclipse. > > A stripped down version of the project with this issue is located at > http://vm0.aatcons.com/eclipse/StrangeEclipseIssue.tar.bz2 , we were able to > reproduce the issue on multiple machines running multiple versions of > eclipse (Galileo and Helios) on multiple platforms (Linux and Win7, 32 and > 64 bit). > > Reproducible: Always > > Steps to Reproduce: > 1.Download and decompress the project from > http://vm0.aatcons.com/eclipse/StrangeEclipseIssue.tar.bz2. > 2.Import the attached project into eclipse as an existing Java project. > 3.Drag SystemUtilities.properties.test to the WebContent directory in the > package view. > 4) Drag SystemUtilities.properties.test back to the root directory of the > project in the package view. > 5) Observe how the file is no longer on disk. I'm not able to recreate the issue in the build: 4.4-win32-x86_64 and the steps above. It works fine for me. I will close the bug. Please reopen it when the issue still occurs Daniel |