Skip to content

Conversation

@RyanThomasForge
Copy link

Added junction/symlinks pre-processing for file paths when calling KDiff3, as KDiff3 does not follow symlinks/junctions when passed as arguments from the command line. I could not find any documentation about this particular error regarding KDiff3, so I suspect it may be an issue with Windows 10, but have no evidence to back it up. Furthermore, its my personal preference to parse such things on our end anyway.

This is a very quick & untested implementation that only checks paths for the "B" and "C" files during merge that specifically fixes the issue with Nexus Mod Manager using symbolic links and the failure of KDiff3 to parse them (despite its settings being set to follow links).

Unfortunately, I could not derive the root cause of the issue with KDiff3 not following the symlink. In fact, after KDiff3 opens with "B" & "C" files blank and showing the original link path, you can simply click the file browser for each file and immediately click "OK" to force KDiff3 to follow the link. Of course this is not usable for our purposes.

Feel free to tweak this or make it more robust. The extension method can be used on both symlink'd and non simlink'd fileInfos.

Ryan Thomas added 3 commits February 9, 2017 20:03
…ic Links

Added junction/simlink pre-processing for file paths when calling KDiff3, as KDiff3 does not follow symlinks/junctions when passed as arguments from the command line. I could not find any documentation about this particular error regarding KDiff3, so I suspect it may be an issue with Windows 10, but have no evidence to back it up. Furthermore, its my personal preference to parse such things on our end anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant