<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 16 Jun 2016, at 23:09, Carpii UK wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">I'm still trying to get to the bottom of this, but not making much progress
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">When you get the error please run these tests on your Mac (not via ssh):</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; padding:0" bgcolor="#F7F7F7"># This is what TextMate does and should fail, otherwise the issue is with TextMate
mv file~ file

# This should open ‘file’ in append mode, this might work
echo Test >> file

# This is similar to above but also truncates the file
echo Test > file

# This simply unlinks the file which is what is implicit in first test
rm file
</code></pre>

<p dir="auto">Here I assume that <code style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; padding:3px" bgcolor="#F7F7F7">file</code> is the file you want to overwrite and <code style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; padding:3px" bgcolor="#F7F7F7">file~</code> is the temporary file left by TextMate after a failed save.</p>

<p dir="auto">Please be sure you have a backup of <code style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; padding:3px" bgcolor="#F7F7F7">file</code> before doing the tests.</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">Im starting to wonder if its possible a bundle I use could be
</div><div dir="auto">involved somehow?
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">Highly unlikely.</p>
</div>
</div>
</body>
</html>