| Summary: | Replace in Files dialog wrecks my files (please believe me, it does) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | r.berg | ||||||
| Component: | Search | Assignee: | Platform-Search-Inbox <platform-search-inbox> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||||
| Severity: | critical | ||||||||
| Priority: | P3 | CC: | markus.kell.r, remy.suen | ||||||
| Version: | 3.6.2 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
r.berg
Created attachment 195604 [details]
Screenshots that proof that this is not a user issue
One thing comes to my mind: We're using the google-mock C++ mocking framework. In this mocking framework one has to compile the unittests to an application. Therefore we created an eclipse link-folder. He linked the sources of the application-project into the unittest-project. => So the sourcefiles are in the workspace twice. One times linked and one times the real file. (And as the screenshots show: I searched in the whole workspace). ... very suspicious :) ... I bet this is the cause for our data loss. It is no linux link, on the filesystem the files occur only once. It is an eclipse-linked-folder. When I open the properties dialog of the second folder I see something like "type: linked folder". This is an eclipse feature. See second attachment. Created attachment 195607 [details]
Screenshot of our project structure (containing one eclipse-linked-folder)
Steps to reproduce (updated); a) Create two eclipse projects b) Create one folder in each project and some files within the folders Add some file content. E.g. "12 123 1234 12345 123456 1234567 12345678" c) Add an eclipse-linked-folder. Link this way the folder of the first project into the second project. d) Perform a batch rename (Strg+H in Eclipse CDT, then switch to Tab "Search Files", press replace). Disable RegEx, search in whole workspace. e) Perform a rename with strings of different sizes (so not "123" by "abc" - instead something like "123456" by "ab"). => The text buffers will be processed twice => dara corruption f) Save, close, open files in another editor: Rename has failed. *** This bug has been marked as a duplicate of bug 320533 *** |