Community
Participate
Working Groups
I find it hard to believe that this actually happens as it seems such a fundamental bug. If I open a file, edit it, then do a search-replace which changes something in the same file, it appears that I cannot then save my changes made in the IDE because "the file on disk has changed" I am about to report a similar issue - in that if I use egit to switch to another branch, it will do so while I have unsaved changes in open editor windows. I mention it in case they are related issues on my m/c.
(In reply to comment #0) > I find it hard to believe that this actually happens as it seems such a > fundamental bug. > > If I open a file, edit it, then do a search-replace which changes something > in the same file, it appears that I cannot then save my changes made in the > IDE because "the file on disk has changed" This works for me. How can I reproduce this? Just opening a file, doing search and replace (CTRL+F), and then saving works for me. Did you switch branches in git between starting to edit the file and trying to save? PW
I also cannot reproduce this using 'File Search' and replace something.
OK - I have done a simple-minded one-file test, and it works fine. So - either the "file changed on disk" message only comes up in more complex situations, OR it comes up if egit has got involved somewhere. I have reported my feelings that egit should not silently switch branches with unwritten edits, so maybe if that is dealt with the phenomenon reported here will quietly evaporate.
Please reopen if you have more details. Hint: If you enable 'Refresh on access' on the General > Workspace preference page, you should no longer see this problem.
*** This bug has been marked as a duplicate of bug 396824 ***