Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326120

Summary: Editor tabs - file saved indicator (*) is acting strange in beta 2
Product: z_Archived Reporter: Petyo Tanchev <petyo_tanchev>
Component: PDTAssignee: Zhongwei Zhao <zhaozhongwei>
Status: CLOSED WORKSFORME QA Contact: Ilina Stefanova <ilina.s>
Severity: minor    
Priority: P1 CC: ganoro, kalin.a, stu, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Petyo Tanchev CLA 2010-09-24 03:27:23 EDT
The * on the editor tabs that show if a file hase been saved or not is acting strange in beta 2.

Sometimes (not always) when you save a file (by pressing ctrl-s) it will save the file, but the * that indicates the files is not saved will stay there.

If you have mutiple files open and you switch between files by clicking on the editor tabs, after a few switches the indicator will update correctly.

I've had this behaviour on multiple files.

http://forums.zend.com/viewtopic.php?f=79&t=7911
Comment 1 Roy Ganor CLA 2010-09-27 04:31:44 EDT
We will need a specific scenario with step by step reproduction description.
Comment 2 Petyo Tanchev CLA 2010-09-27 04:55:36 EDT
Still trying to reproduce...
Comment 3 Petyo Tanchev CLA 2010-09-28 03:58:49 EDT
We found one way to reproduce it. It is always reproducible. Thanks to Kalin!

- Have two PHP Projects - for example Project_1 and Project_2
- Include Project_2 in include path of Project_1
- In a file A.php in Project_1 include file B.php from Project_2
- Rename the file B.php while A.php is sill open
- A.php is updated with the new name of B.php in the include statement
- Try to save A.php
- The * mark does not disappear and the "Save" button stays active although the file is saved
- going to another tab (file) and then back to A.php will hide the * mark and disable the "Save" button
Comment 4 Petyo Tanchev CLA 2010-09-28 04:02:46 EDT
Tried something else...
No need of two projects. Just one with two files. Include one of them in the other and again rename the included one. Other steps are the same.
Comment 5 Zhongwei Zhao CLA 2010-09-28 04:39:23 EDT
(In reply to comment #4)
> Tried something else...
> No need of two projects. Just one with two files. Include one of them in the
> other and again rename the included one. Other steps are the same.

I use pdt,when I rename B.php,the content of A.php does not change at all.
Comment 6 Stu CLA 2011-02-06 17:35:49 EST
Still happens with latest Eclipse 3.6.1 and PDT 2.2.1. On Mac OSX.

Is there anyone working on PDT bugs, there are 1000's of bugs, all "NEW?"
Comment 7 Zhongwei Zhao CLA 2011-05-04 04:05:55 EDT
could not be reproduced now
Comment 8 Stu CLA 2011-05-04 04:17:10 EDT
Yes, I can confirm it is working with one of the recent Eclipse IDE updates.
Comment 9 Stu CLA 2011-05-04 04:17:56 EDT
Just to be clear, "working" means that this problem no longer happens (it has been fixed).
Comment 10 Zhongwei Zhao CLA 2011-05-04 04:22:30 EDT
thanks very much for your feedback!!!!
Comment 11 Kalin CLA 2011-07-25 08:49:43 EDT
Verified.
No longer reproducible.