Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351753 - Compare doesn't mark resources as dirty properly
Summary: Compare doesn't mark resources as dirty properly
Status: CLOSED DUPLICATE of bug 397043
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-11 16:44 EDT by Jason Craig CLA
Modified: 2020-05-14 11:17 EDT (History)
1 user (show)

See Also:


Attachments
Exception thrown when copying changes (5.31 KB, text/plain)
2011-07-11 16:51 EDT, Jason Craig CLA
no flags Details
Another exception thrown when copying changes (409 bytes, text/plain)
2011-07-11 16:53 EDT, Jason Craig CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***