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

Bug 351753

Summary: Compare doesn't mark resources as dirty properly
Product: z_Archived Reporter: Jason Craig <os-dev>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Exception thrown when copying changes
none
Another exception thrown when copying changes none

Description Jason Craig CLA 2011-07-11 16:44:18 EDT
Build Identifier: 20110615-0604

When comparing two PHP files with each other you can't save changes unless you copy at least one change from left to right and one from right to left.  When comparing a PHP file with the git index, you can't save the changes unless you copy a change from right (the index) to left (the working copy).

To me this is a bug that throws a major wrench in my development work flow, but maybe it isn't as important to others.

Reproducible: Always

Steps to Reproduce:
1. Select two PHP files.
2. Right click, select "Compare With" -> "Each Other".
3. Copy change(s) from left to right only or right to left only.
4. Attempt to save with ctrl-s, file menu, etc.
or
1. Select a PHP file.
2. Right click, select "Compare WIth" -> "Git Index".
3. Copy change(s) from left to right only.
4. Attempt to save.
Comment 1 Jason Craig CLA 2011-07-11 16:51:01 EDT
Created attachment 199448 [details]
Exception thrown when copying changes

I get this exception twice when I try to copy changes when comparing PHP files.
Comment 2 Jason Craig CLA 2011-07-11 16:53:28 EDT
Created attachment 199449 [details]
Another exception thrown when copying changes

This is another exception thrown when copying changes while comparing PHP files.  This is just the first four lines:  If you look at my first attachment and replace the first two lines of that file with these four lines, that is the full output of the exception if that makes sense.
Comment 3 Zhongwei Zhao CLA 2012-12-23 08:47:46 EST

*** This bug has been marked as a duplicate of bug 397043 ***