Skip to content

Problems with file paths on Windows #190

@Mistale

Description

@Mistale

When building LazyJJ from source, file diffs are not working on Windows:

Image

This seems to be related to the recent change of how file paths are supplied to the diff command 83f60ce

Quotes are escaped, but backslashes are not.

Using debug formatting for the path instead of applying manual escaping seems to work for both quotes and backslashes, i.e replacing all occurrences of let fileset = format!("file:\"{}\"", path.replace('"', "\\\"")) with let fileset = format!("file:{path:?}").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions