After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758098 - File comparison does not show any differences
File comparison does not show any differences
Status: RESOLVED DUPLICATE of bug 757963
Product: meld
Classification: Other
Component: filediff
3.14.x
Other Linux
: Normal blocker
: ---
Assigned To: meld-maint
meld-maint
: 758154 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-11-14 10:53 UTC by Dimitri Kaparis
Modified: 2015-11-16 03:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
First sample file for comaprison (21 bytes, text/plain)
2015-11-14 22:32 UTC, Dimitri Kaparis
Details
Second sample file for comparison (39 bytes, text/plain)
2015-11-14 22:34 UTC, Dimitri Kaparis
Details

Description Dimitri Kaparis 2015-11-14 10:53:21 UTC
Under Arch linux, using current package meld 3.14.1-1.
gtk3 version is 3.18.3-1.

Comparing any two files does not display any navigable differences, but just the contents of the two files is listed in the panes instead. No text filters are active in preferences dialog. Directory comparison correctly detects modified files between directories, but opening them for comparison from there gives the same result.

Also tried manually downloading and running from the meld-3.14.1.tar.xz package, with same result.
Comment 1 Kai Willadsen 2015-11-14 20:49:22 UTC
Can you attach the two files, or any other files that will reproduce this? Also, if there anything printed on the command line when you see this bug?
Comment 2 Dimitri Kaparis 2015-11-14 22:32:54 UTC
Created attachment 315615 [details]
First sample file for comaprison
Comment 3 Dimitri Kaparis 2015-11-14 22:34:59 UTC
Created attachment 315617 [details]
Second sample file for comparison

Attached two sample files, their first two lines are identical, the third is different; meld displays them with no differences highlighted or navigable.
Comment 4 Dimitri Kaparis 2015-11-14 22:37:46 UTC
This is the printed output when starting comparison. I hadn't noticed it before because Meld used to spit a lot of assertion messages while operating normally in the past.

Traceback (most recent call last):
  • File "/usr/lib/python2.7/site-packages/meld/task.py", line 110 in iteration
    ret = next(task)
  • File "/usr/lib/python2.7/site-packages/meld/filediff.py", line 1270 in _set_files_internal
    for i in self._diff_files():
  • File "/usr/lib/python2.7/site-packages/meld/filediff.py", line 1227 in _diff_files
    while next(step) is None:
  • File "/usr/lib/python2.7/site-packages/meld/diffutil.py", line 466 in set_sequences_iter
    while next(work) is None:
  • File "/usr/lib/python2.7/site-packages/meld/matchers.py", line 246 in initialise
    a, b = self.preprocess()
  • File "/usr/lib/python2.7/site-packages/meld/matchers.py", line 155 in preprocess
    a, b = self.preprocess_remove_prefix_suffix(self.a, self.b)
  • File "/usr/lib/python2.7/site-packages/meld/matchers.py", line 109 in preprocess_remove_prefix_suffix
    self.common_prefix = find_common_prefix(a, b)
  • File "/usr/lib/python2.7/site-packages/meld/matchers.py", line 43 in find_common_prefix
    if a[0] == b[0]:
  • File "/usr/lib/python2.7/site-packages/meld/meldbuffer.py", line 268 in __getitem__
    line_end = line_start.copy()
AttributeError: 'tuple' object has no attribute 'copy'

Comment 5 Kai Willadsen 2015-11-14 22:46:30 UTC
Thanks for that. The bug you're seeing has already been fixed in GTK+ 3.18.4.

*** This bug has been marked as a duplicate of bug 757963 ***
Comment 6 Kai Willadsen 2015-11-16 03:08:21 UTC
*** Bug 758154 has been marked as a duplicate of this bug. ***