Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331037 - Text Replace shredders my file
Summary: Text Replace shredders my file
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 11:04 EST by yves.harms CLA
Modified: 2010-11-24 12:09 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yves.harms CLA 2010-11-24 11:04:50 EST
Build Identifier: 20100917-0705

Replace eats my tags !

Reproducible: Always

Steps to Reproduce:
Search - File
Try to replace the version in multiple pom files that have content like this:
<parent>
  <artifactId>Atlas</artifactId>
  <groupId>com.kn</groupId>
  <version>1.10.27.3-SNAPSHOT</version>
</parent>

File name pattern:
pom.xml

result: The closing version tag will be partially deleted
Comment 1 yves.harms CLA 2010-11-24 11:05:47 EST
This bug appears since 3.5, never had the problem before.
Comment 2 Dani Megert CLA 2010-11-24 11:25:09 EST
I cannot reproduce this. Are you maybe running into bug 320533? If not, please provide more detailed steps to reproduce the problem.
Comment 3 yves.harms CLA 2010-11-24 11:42:13 EST
No, its not the same.
I noticed it occurs only if the replacement string is shorter (e.g. deleting -SNAPSHOT).
Comment 4 Dani Megert CLA 2010-11-24 11:45:52 EST
(In reply to comment #3)
> No, its not the same.
> I noticed it occurs only if the replacement string is shorter (e.g. deleting
> -SNAPSHOT).
OK. Can you please provide exact steps. There's nothing I can do if I can't reproduce the problem.
Comment 5 yves.harms CLA 2010-11-24 12:02:05 EST
Sorry, can't reproduce it with a mimimal example.
Creating a new workspace seems to fix the problem however.

Thanks for the fast response.
Comment 6 Dani Megert CLA 2010-11-24 12:09:18 EST
Please reopen if you can reproduce. Maybe something in .log?