Bug 289059 - File is out of sync
Summary: File is out of sync
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-09-10 06:58 EDT by Krzysztof Daniel CLA
Modified: 2009-09-15 05:07 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Daniel CLA 2009-09-10 06:58:12 EDT
The problem is reported by one of Eclipse adopters.

Reproduction steps:
 Copy - paste 2 java files in PackageExplorer (result - 4 files)
 Delete copies
 Change original files
 Copy paste them (result - 4 files)
 
 Open the copies -> they are not modified (state from first copy-paste). The weird thing is that on the file system files are correct, only editor shows old versions.

The issue happens once or twice a week in a development team. SVN is used.

Any hints/comments are welcome.
Comment 1 Krzysztof Daniel CLA 2009-09-10 06:59:47 EDT
Once the issue happens it is perfectly reproducible. -clean is a cure.
Comment 2 Krzysztof Daniel CLA 2009-09-10 07:01:56 EDT
Nothing in .log
Comment 3 Dani Megert CLA 2009-09-14 09:42:23 EDT
>SVN is used.
Might be an SVN issue. Cannot reproduce and never heard of this so far.

> -clean is a cure.
I don't think this has anything to do with the bug.
Comment 4 Szymon Brandys CLA 2009-09-14 12:20:24 EDT
I'm neither able to reproduce it. 

Dani, could it be a problem with IDocumentProvider and text IDocuments backed by IFileBuffers? As I remember the text editors use this mechanism as a cache for file content.

Krzysztof could you provide more details like:
- what svn provider is used?
- is the issue reproducible using Eclipse without the svn provider?

Anyway there is not enough details to diagnose the issue. I think this is INVALID needinfo.
Comment 5 Dani Megert CLA 2009-09-14 12:27:29 EDT
>Dani, could it be a problem with IDocumentProvider and text IDocuments backed
>by IFileBuffers? As I remember the text editors use this mechanism as a cache
>for file content.
No.
Comment 6 Szymon Brandys CLA 2009-09-14 12:35:39 EDT
Need more info.
Comment 7 Krzysztof Daniel CLA 2009-09-15 05:07:54 EDT
I have already excluded bug in text editors (for 100%, it is impossible that such an issue persists Eclipse restart).

The issue does not seem to be related to SVN, but it is quite possible it is related to project set-up:
  Additional deviations (breakpoints appear in non-existing line) indicate that the bug may be caused by builders (file not copied correctly) or with web project (corrupted paths in J2EE project) or both.

The investigation is in progress, expect more info soon.