Project
IntelliJ IDEA
Priority
Major
Type
Bug
Fix versions
No Fix versions
State
Open
Assignee
Maxim Shafirov
Subsystem
Editor. Editing Text
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Anthony Holland
    3 years ago (06 May 2008 20:55)
  • Updated by   root
    2 years ago (17 Jan 2010 21:00)
  • Jira: IDEADEV-26564
    (history, comments)
 
IDEA-43819 Editor sees old versions of files even if closed before old-file-deletion and re-opened after new-file-placement
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
I generate 9 files (in, say, c:\scratch\jnlps). I open them in intelliJ and examine them. Each has 10 lines. I close the files in IDEA. I delete all the files. I change the generating process (xslt template) and re-run on the generating process. The files now put in place bear the same names as previously, but now each file consists of 150 lines. I open the files in IDEA. IDEA shows the old 10-line version. I cannot trust my IDE to show me the true contents of a file, even when I have just opened it. This is a major problem.

Environment: WinXP
Comments (4)
 
History
 
Linked Issues (?)
 
Anthony Holland
  Anthony Holland
06 May 2008 20:57
3 years ago
Because the files are not in the project tree, there is also no options to refresh or sychronize them. I cannot believe this bug.
Anthony Holland
  Anthony Holland
07 May 2008 14:57
3 years ago
This bug exists in build 8280 as well
Alexander Chernikov
  Alexander Chernikov
13 May 2008 22:21
3 years ago
7832: can be easily reproduced.
I've created an application that writes into a text file outside the project.
1. Run the application. (File is created outside.)
2. Open file via main menu / File / Open file. Check the content.
3. Close the file.
4. Go into file manager, delete file.
5. Return to IDEA.
6. Change the application to generate different file content.
7. Step 1.
8. Step 2.
The content is old.
If the file is stayed opened in editor, the next synchronization updates the content.
Anthony Holland
  Anthony Holland
13 May 2008 22:29
3 years ago
I think this might be closely related: Idea sometimes does not synchronize.

(1) Sometimes a file that is left open but changed on disk will be synchronized as you look at it.

(2) Other times it will synchronize only when the user selects "File | Synchronize" from the File Menu.

(3) Worst of all, other times even selecting "File | Synchronize" has no effect.

This applies to files that are not dirty, i.e. have not been edited in the editor. In my case, the files were completely outside the project tree.