<p>Sorry you lost your file, but this is a known situation.</p>
<p>There are several options that control how Geany saves files, see <a href="https://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving" rel="nofollow">this</a>.</p>
<p>Several of the options are known to have problems on full file systems (see the article) and are likely to result in loss of the original file, but these options have advantages in other situations, so its a trade off and makes it difficult to decide which is chosen as the default.  The default value works best in normal operation, so its the default, but as that article notes, its is a system library and has a bug which has been known for a very long time and looks like it will never be fixed.  Sadly that bug destroys the original file if the save fails.</p>
<p>And also note the initial paragraphs of the wiki article, so long as Geany is not closed you still have the buffer in memory, so you can save the buffer that is still in Geany somewhere else when a save fails.</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/1895#issuecomment-403434884">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ5GnosGL7_sTm3G81kqlZxNkksn1ks5uEzFPgaJpZM4VHa2t">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ6c6lYDwp8E0IGu6f1114tBeF5qqks5uEzFPgaJpZM4VHa2t.gif" height="1" width="1" alt="" /></p>
<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://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #1895: Sorry you lost your file, but this is a known situation. \r\n\r\nThere are several options that control how Geany saves files, see [this](https://wiki.geany.org/config/all_you_never_wanted_to_know_about_file_saving).  \r\n\r\nSeveral of the options are known to have problems on full file systems (see the article) and are likely to result in loss of the original file, but these options have advantages in other situations, so its a trade off and makes it difficult to decide which is chosen as the default.  The default value works best in normal operation, so its the default, but as that article notes, its is a system library and has a bug which has been known for a very long time and looks like it will never be fixed.  Sadly that bug destroys the original file if the save fails.\r\n\r\nAnd also note the initial paragraphs of the wiki article, so long as Geany is not closed you still have the buffer in memory, so you can save the buffer that is still in Geany somewhere else when a save fails.  "}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1895#issuecomment-403434884"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1895#issuecomment-403434884",
"url": "https://github.com/geany/geany/issues/1895#issuecomment-403434884",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany] geany reset my file (#1895)",
"sections": [
{
"text": "",
"activityTitle": "**elextr**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@elextr",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1895,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1895\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1895#issuecomment-403434884"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 354266541\n}"
}
],
"themeColor": "26292E"
}
]</script>