Wilfred / difftastic

a structural diff that understands syntax 🟥🟩

Home Page:https://difftastic.wilfred.me.uk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong result for syntactically different python identation

ichianr opened this issue · comments

(1) A description of the issue. A screenshot is often helpful too.
Difftastic prints No syntactic changes for syntactically different python files.
image

(2) A copy of what you're diffing. If you're diffing files, include the before and after files. If you're using difftastic with a VCS repository (e.g. git), include the URL and commit hash.
a.py:

def f(args):
    if isinstance(args, list):
        print("hello")
    print("world")

b.py:

def f(args):
    if isinstance(args, list):
        print("hello")
        print("world")

(3) The version of difftastic you're using (see difft --version) and your operating system.

$ difft --version
Difftastic 0.56.1 (d9d6401c4 2024-03-05, built with rustc 1.76.0)

It was installed with pacman in Arch Linux.

See also #657 and #637

See also #657 and #637

Those issues are different from this one, as in this case the change is syntactic.

See also #657 and #637

Those issues are different from this one, as in this case the change is syntactic.

I'm not saying they're the same; just that they're similar :)
Somebody looking to solve one of these issues might want to look at the other issues in case the cause and/or solution are related.

Thanks for the report! This is a duplicate of #587, so closing in favour of that issue.