Bug 68973 - File changes lost
Summary: File changes lost
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-06-30 04:18 EDT by Ortwin Glück CLA
Modified: 2007-06-22 10:04 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ortwin Glück CLA 2004-06-30 04:18:46 EDT
I noticed this twice now, but I can't tell how to exactly reproduce the behaviour.

I am editing a Java source file but there is *no* asterix in the tab indicating
that the file has changed. When I exit Eclipse I am *not* prompted to save the
file and changes are lost. I will further try and reproduce this behaviour. The
bug seems new in 3.0 and I never saw it in previous milestone releases.
Comment 1 Ortwin Glück CLA 2004-06-30 04:31:41 EDT
I could reproduce the problem again. I was in the Synchronize view and did a
'Override and Update' on the file. After the update happened, somehow Eclipse
notified me that the file had changed on disk and asked if I wanted to reload
it. After I answered 'yes', the file was in that 'mode' where editing did not
set it to modified.

It seems that this always happens if Eclipse notices that a file has changed on
disk. It seems to display that dialog occasionally after CVS operations. I am
not sure why. (My machine and the CVS repository both use a NTP time server to
synchronize their system time.)

The missing modified flag is extremely nasty, because even when you press
Shift-S to save the file, the file will *not* be saved to disk and all changes
are lost.
Comment 2 Dani Megert CLA 2004-07-08 04:21:20 EDT
Which FS?
Might be related to bug 67590.
Comment 3 Ortwin Glück CLA 2004-07-08 04:43:07 EDT
It's a Windows 2000 Pro machine with a NTFS partition.
I would be surprised if it was related to 67590, judging from the symptoms.
Comment 4 Dani Megert CLA 2004-07-08 13:23:30 EDT
What team provider do you use? If CVS, do you work with CVS watch/edit enabled?
Comment 5 Dani Megert CLA 2004-07-08 13:25:22 EDT
stupid me: could see in comment 1 that you are using CVS
Comment 6 Dani Megert CLA 2004-07-08 13:26:27 EDT
Next time you see this please check whether the read-only status is shown in the
 status line.
Comment 7 Dani Megert CLA 2004-07-08 13:27:46 EDT
One other thing: did you modify the file outside Eclipse? Did you check the
"Refresh workspace automatically" Workbench preference?
Comment 8 Dani Megert CLA 2004-07-08 13:38:12 EDT
Any third party plug-ins installed? If so, can you reproduce the problem in
plain Eclipse SDK?
Comment 9 Ortwin Glück CLA 2004-07-08 13:50:11 EDT
comment 4: not using watch/edit
comment 7: not editing the file outside of Eclipse, Refresh workspace
automatically is not checked
comment 6: I can't think of any reason why the file should be read-only. It was
maybe one week old and heavily edited by two people (mostly by me) via CVS.
comment 8: plugins: jadclipse, net.sf.colorer_0.6.0, net.sf.tm_0.7.1,
ru.nlmk.eclipse.plugins.profiler, org.mevenide.*

The problem is still difficult to reproduce. It seems that I accidentially ran
into it a couple of times, but it hasn't occurred since.
Comment 10 Dani Megert CLA 2004-07-12 04:45:47 EDT
If you find a way to reproduce, try whether it can also be reproduced on plain
Eclipse SDK.
Comment 11 Tom Hofmann CLA 2004-07-28 03:10:01 EDT
hm - looked into it but don't have an idea of how this could happen. Unable to
reproduce and have never seen it.
Comment 12 Dani Megert CLA 2004-07-28 09:55:08 EDT
We tried on different platforms and cannot reproduce it. Please reopen if you
have additional data.
Comment 13 Christof Marti CLA 2004-07-28 10:56:46 EDT
Was the editor dirty when you ran 'override and update'?

Comment 1 says that the 'file changed on disk' dialog showed up. I can get this
dialog if the file I run 'override and update' on is dirty in the editor.
However, this also made the 'Save Resources' dialog appear before any other
dialog. Comment 1 does not mention this dialog.
Comment 14 Dani Megert CLA 2007-06-22 09:58:48 EDT
Get rid of deprecated state.
Comment 15 Dani Megert CLA 2007-06-22 10:04:13 EDT
.