Community
Participate
Working Groups
When you use the "Search Dialog" (Ctrl+H) to replace text, incorrect replacements are done in dirty editor (files). To reproduce (with Xtend example, but also fails for our VHDL/Verilog editor): 1. Create a file demo.xtend with content: ''' class Demo { def demo() { println("demo") } // demo } ''' 2. Add a few (I added three) newlines before the demo method (but do *not* save") 3. Ctrl+H 4. Enter "demo" as text (*.xtend as pattern) 5. Click "Replace..." 6. Enter "xxxx" in the "With:" field 7. Click "OK" 8. Notice the editor is unchanged 9. When you click the editor, you see a message "The file ... has been changed... replace the editor contents with these changes?", click "Yes" 10. Notice that replacements are completely wrong. It looks like the dirty content was used to calculate the change locations, but the changes were applied on the content on disk. ''' class xxxx { def dxxxx) { println("dxxxx) } // dxxxx} '''
Probably caused by the same issue as the no-two-editors-on-same-file missing feature.