<p>I'm using Geany 1.30.1 on Windows 7.</p>
<p>After happily editing a file over some time, suddenly Geany refuses to save it with this error message:<br>
<a href="https://cloud.githubusercontent.com/assets/6795665/26307308/310c7900-3ef4-11e7-963f-2e357b094e64.jpg" target="_blank"><img src="https://cloud.githubusercontent.com/assets/6795665/26307308/310c7900-3ef4-11e7-963f-2e357b094e64.jpg" alt="capture_20170522_133456" style="max-width:100%;"></a></p>
<p>I know that Windows sometimes grabs a lock on a file when I'm just looking at it with another tool, but I am pretty sure that the only way I'm operating on this file since the last bootup of my machine, is by editing it in Geany. Still, for the safe side, I run the <a href="https://technet.microsoft.com/en-us/sysinternals/bb896653">Handle</a> utility to see whether someone has a handle to either the file or the directory where the file is in - nothing. I also used Geany's "File/Properties" to check, whether maybe the file secretly became  readonly; this is also not the case. Finally I turned on the gio_unsafe_save_backup and tried again, but same result. Note that it is a local file, so there can't be network issues involved either.</p>
<p>Then I tried "save as" with "rename", to store it under a new name in the same directory. This was refused with the same error message. I could see that the file got renamed, but still had the old content. This is weird: If the cause would be a directory lock, the rename should ALSO have failed.</p>
<p>Needless to say that it is not a disk space problem either.</p>
<p>I resolved the problem temporarily by using the following strategy:</p>
<ol>
<li>Using "Save as" to save it to a completely different directory.</li>
<li>Copying the file back (on the command line)</li>
<li>Closing the Buffer in Geany</li>
<li>Reopening it</li>
</ol>
<p>I then checked with my remaining open files in Geany. Modifying the buffer and saving, caused the same error with two of the files, while it worked fine with two others. One of the two where the error occured too, belonged to a different directory, while all the others - including those which could be saved - belonged to the same directory as the file where the problem occured initially.</p>
<p>I don't see yet in what respect the two files which did not have the problem, differed significantly from the two files where the problem occured.</p>
<p>Closing Geany, starting it, and I can continue editing like normal, but my feeling is that it will be only a question of time until the problem occurs again. Is there anything I can do to help the Geany developers to nail down the cause of this strange problem?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1500">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ6hpQfy6u3d0dcQXBMqepJEkOKg1ks5r8XnrgaJpZM4NiQ4e">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9lMxma10B3dYUXt7cDTO8Ggq2SBks5r8XnrgaJpZM4NiQ4e.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1500"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Geany refuses to save a file (under yet undetermined conditions) (#1500)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1500"}}}</script>