History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-26564
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Maxim Shafirov
Reporter: Anthony Holland
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Editor sees old versions of files even if closed before old-file-deletion and re-opened after new-file-placement

Created: 06 May 08 19:55   Updated: 13 May 08 21:29
Component/s: Editor. Editing Text
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: WinXP

Build: 7,821
Severity: Extreme


 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order:
Anthony Holland - 06 May 08 19:57
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 - 07 May 08 13:57
This bug exists in build 8280 as well

Alexander Chernikov - 13 May 08 21:21
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 - 13 May 08 21:29
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.