diffy icon indicating copy to clipboard operation
diffy copied to clipboard

Diffy does not diff

Open arghorashy opened this issue 11 years ago • 2 comments

I'm using diffy-2.1.2 with Ruby 1.9.3p327 (2012-11-10) [i386-mingw32] on Windows XP SP3.

I have successfully (or so I think) configured diffy on the computer. However, diffy doesn't seem to be diffing.

For example, the output for puts Diffy::Diff.new("blue\n", "red\n").to_s(:html) is

`

  • blue
`

Am I missing something here?

Thanks, Grasswistle

arghorashy avatar Oct 21 '13 15:10 arghorashy

My guess is the problem has something to do with the default command line settings for your version of diff.

It might make sense to play around with the options passed to diff (https://github.com/samg/diffy#overriding-the-command-line-options-passed-to-diff) since they might be different than the *nix defaults. You could also play around on the command line to determine whether the problem is in diffy or in your diff installation.

samg avatar Oct 22 '13 08:10 samg

So this is what I had done wrong:

  1. I installed diff and which on windows using the exe installers.
  2. I created a path without spaces (e.g. C:\unixutils) where I could copy diff and which so that diffy could access them.
  3. I moved the diff and which executables from their original location in C:\Program Files\GnuWin32 to this new directory.
  4. Added this new directory to this path.

The problem: I should have moved all of the files (including the dll's) from C:\Program Files\GnuWin32 to the new directory.

Grasswistle

arghorashy avatar Oct 22 '13 17:10 arghorashy