Using external diff tool drops extension from filename

Answered

Since switching from IDEA 14 to 16.2, I'm seeing that the temporary files created for using an external diff tool have part of the original filename (including the extension) truncated.  I use Araxis Merge for diff'ing Excel files (which IntelliJ doesn't support) which are part of one of the projects I work on.  The ".xls" file extension is being removed from the temporary file, which causes Araxis to treat the file as text, instead of doing the smarter Sheet/Row level diff that it normally does for recognized Excel files.

For example, when trying to diff "FileFromVcs.xls" from the Version Control log UI, IntelliJ says "Can't show diff" (expected), and I click the "Show Diff in External Tool" link.  Araxis is then called with these two files:

/private/var/folders/rm/yp38sst169zcprfn5wdtnppx2ltrd3/T/tmp__db316f9a41dd03b2a9db089b85697586c590fff6_FileFromV.

/private/var/folders/rm/yp38sst169zcprfn5wdtnppx2ltrd3/T/tmp__0ced89e772232b7152978e2a2a9bbd32882c7c91_FileFromV.

Both files exist with those exact names (including the period at the end) and Araxis then shows a binary diff, which is useless.

This worked fine in 14, so I'm assuming it's just a bug.  Any ideas?

Please sign in to leave a comment.