Atom crashed and my source file ended up blank


#83

This just happened to me. All of the changes I made to a couple of files yesterday are gone. I think Atom crashed and then installed an update when it reopened. The two files that don’t remember any changes from yesterday (but not all the other files that were also open but unchanged) reopened and indicated they had unsaved changes with the little dot, but didn’t remember of them.

  1. Mac OS 10.12.16
  2. Atom 1.26.1 but I think yesterday it was something like 1.23
  3. tests (master)*$ apm list
    Built-in Atom Packages (92)
    β”œβ”€β”€ atom-dark-syntax@0.29.0
    β”œβ”€β”€ atom-dark-ui@0.53.2
    β”œβ”€β”€ atom-light-syntax@0.29.0
    β”œβ”€β”€ atom-light-ui@0.46.2
    β”œβ”€β”€ base16-tomorrow-dark-theme@1.5.0
    β”œβ”€β”€ base16-tomorrow-light-theme@1.5.0
    β”œβ”€β”€ one-dark-ui@1.11.0
    β”œβ”€β”€ one-light-ui@1.11.0
    β”œβ”€β”€ one-dark-syntax@1.8.2
    β”œβ”€β”€ one-light-syntax@1.8.2
    β”œβ”€β”€ solarized-dark-syntax@1.1.4
    β”œβ”€β”€ solarized-light-syntax@1.1.4
    β”œβ”€β”€ about@1.8.0
    β”œβ”€β”€ archive-view@0.64.3
    β”œβ”€β”€ autocomplete-atom-api@0.10.7
    β”œβ”€β”€ autocomplete-css@0.17.5
    β”œβ”€β”€ autocomplete-html@0.8.4
    β”œβ”€β”€ autocomplete-plus@2.40.5 (disabled)
    β”œβ”€β”€ autocomplete-snippets@1.12.0
    β”œβ”€β”€ autoflow@0.29.3
    β”œβ”€β”€ autosave@0.24.6
    β”œβ”€β”€ background-tips@0.28.0
    β”œβ”€β”€ bookmarks@0.45.1
    β”œβ”€β”€ bracket-matcher@0.89.1
    β”œβ”€β”€ command-palette@0.43.5
    β”œβ”€β”€ dalek@0.2.2
    β”œβ”€β”€ deprecation-cop@0.56.9
    β”œβ”€β”€ dev-live-reload@0.48.1
    β”œβ”€β”€ encoding-selector@0.23.8
    β”œβ”€β”€ exception-reporting@0.43.1
    β”œβ”€β”€ find-and-replace@0.215.5
    β”œβ”€β”€ fuzzy-finder@1.8.1
    β”œβ”€β”€ github@0.12.0
    β”œβ”€β”€ git-diff@1.3.9
    β”œβ”€β”€ go-to-line@0.33.0
    β”œβ”€β”€ grammar-selector@0.50.0
    β”œβ”€β”€ image-view@0.62.4
    β”œβ”€β”€ incompatible-packages@0.27.3
    β”œβ”€β”€ keybinding-resolver@0.38.1
    β”œβ”€β”€ line-ending-selector@0.7.5
    β”œβ”€β”€ link@0.31.4
    β”œβ”€β”€ markdown-preview@0.159.20
    β”œβ”€β”€ metrics@1.2.6
    β”œβ”€β”€ notifications@0.70.5
    β”œβ”€β”€ open-on-github@1.3.1
    β”œβ”€β”€ package-generator@1.3.0
    β”œβ”€β”€ settings-view@0.254.2
    β”œβ”€β”€ snippets@1.3.3
    β”œβ”€β”€ spell-check@0.73.4
    β”œβ”€β”€ status-bar@1.8.15
    β”œβ”€β”€ styleguide@0.49.10
    β”œβ”€β”€ symbols-view@0.118.2
    β”œβ”€β”€ tabs@0.109.1
    β”œβ”€β”€ timecop@0.36.2
    β”œβ”€β”€ tree-view@0.221.3
    β”œβ”€β”€ update-package-dependencies@0.13.1
    β”œβ”€β”€ welcome@0.36.6
    β”œβ”€β”€ whitespace@0.37.5
    β”œβ”€β”€ wrap-guide@0.40.3
    β”œβ”€β”€ language-c@0.59.3
    β”œβ”€β”€ language-clojure@0.22.7
    β”œβ”€β”€ language-coffee-script@0.49.3
    β”œβ”€β”€ language-csharp@1.0.1
    β”œβ”€β”€ language-css@0.42.10
    β”œβ”€β”€ language-gfm@0.90.3
    β”œβ”€β”€ language-git@0.19.1
    β”œβ”€β”€ language-go@0.45.3
    β”œβ”€β”€ language-html@0.49.0
    β”œβ”€β”€ language-hyperlink@0.16.3
    β”œβ”€β”€ language-java@0.29.0
    β”œβ”€β”€ language-javascript@0.128.5
    β”œβ”€β”€ language-json@0.19.1
    β”œβ”€β”€ language-less@0.34.2
    β”œβ”€β”€ language-make@0.22.3
    β”œβ”€β”€ language-mustache@0.14.5
    β”œβ”€β”€ language-objective-c@0.15.1
    β”œβ”€β”€ language-perl@0.38.1
    β”œβ”€β”€ language-php@0.43.2
    β”œβ”€β”€ language-property-list@0.9.1
    β”œβ”€β”€ language-python@0.49.4
    β”œβ”€β”€ language-ruby@0.71.4
    β”œβ”€β”€ language-ruby-on-rails@0.25.3
    β”œβ”€β”€ language-sass@0.61.4
    β”œβ”€β”€ language-shellscript@0.26.3
    β”œβ”€β”€ language-source@0.9.0
    β”œβ”€β”€ language-sql@0.25.10
    β”œβ”€β”€ language-text@0.7.4
    β”œβ”€β”€ language-todo@0.29.4
    β”œβ”€β”€ language-toml@0.18.2
    β”œβ”€β”€ language-typescript@0.3.3
    β”œβ”€β”€ language-xml@0.35.2
    └── language-yaml@0.32.0

Community Packages (23) /Users/kthyng/.atom/packages
β”œβ”€β”€ atom-beautify@0.30.6
β”œβ”€β”€ atom-latex@0.8.2 (disabled)
β”œβ”€β”€ atom-material-syntax@1.0.7
β”œβ”€β”€ atom-material-ui@1.3.10
β”œβ”€β”€ auto-detect-indentation@1.3.0 (disabled)
β”œβ”€β”€ autocomplete-python@1.10.3 (disabled)
β”œβ”€β”€ grammar-token-limit@0.1.1
β”œβ”€β”€ hyperclick@0.1.5 (disabled)
β”œβ”€β”€ language-fortran@2.1.6
β”œβ”€β”€ language-latex@1.1.1
β”œβ”€β”€ language-matlab@0.2.1
β”œβ”€β”€ latex@0.43.0
β”œβ”€β”€ latexer@0.3.0
β”œβ”€β”€ line-ending-converter@1.3.2
β”œβ”€β”€ linter@2.2.0 (disabled)
β”œβ”€β”€ linter-chktex@1.3.1
β”œβ”€β”€ linter-pep8@1.3.2 (disabled)
β”œβ”€β”€ linter-pycodestyle@2.1.3
β”œβ”€β”€ linter-tidy@2.3.1
β”œβ”€β”€ markdown-preview-plus@2.4.9
β”œβ”€β”€ pretty-json@1.6.4
β”œβ”€β”€ python-indent@1.1.2
└── script@3.17.3

  1. β€œ*”:
    β€œatom-beautify”:
    general:
    _analyticsUserId: β€œ82f5a61c-eeaa-40fc-b276-349844ccbc96”
    core:
    disabledPackages: [
    β€œlinter”
    β€œlinter-pep8”
    β€œauto-detect-indentation”
    β€œhyperclick”
    β€œautocomplete-python”
    β€œautocomplete-plus”
    β€œatom-latex”
    ]
    telemetryConsent: β€œlimited”
    editor:
    autoIndent: false
    fontSize: 17
    invisibles: {}
    showInvisibles: true
    tabLength: 4
    tabType: β€œsoft”
    β€œexception-reporting”:
    userId: β€œ07c51bc7-e493-7f80-2237-f5f64dcb85d3”
    β€œgrammar-token-limit”:
    maxTokensPerLine: 150
    welcome:
    showOnStartup: false

Your init script

Atom will evaluate this file each time a new window is opened. It is run

after packages are loaded/activated and after the previous editor state

has been restored.

An example hack to log to the console when each text editor is saved.

atom.workspace.observeTextEditors (editor) ->

editor.onDidSave ->

console.log β€œSaved! #{editor.getPath()}”

  1. See first part of message.

#84

Lost all of my work. Terrible product. Bye


#85

As you can see by reading this thread, your experience has been unable to be replicated under controlled conditions. This issue cannot be resolved if everyone who experiences it immediately throws their hands up.


#86

I just lost all changes to a document. :sob: No crash involved.

I was editing a document, went and installed the vim-mode-plus package, and then quit and restarted Atom. I assumed Atom would either a) prompt me to save any unsaved files, or b) restore any unsaved files in their edited state upon restart (as Sublime does). Instead, there was no Save prompt and the document came back with all changes lost.

I’d used Atom 2 years ago and I was just trying it again to check out its asciidoc support. I’ll check back again in 2020 and see if its ready for prime-time.

What OS and version of the OS you’re running

Mac OS 10.13.4

Which version of Atom you have installed

1.27.2

A list of all the packages you have installed along with their versions (you can get this easily with apm list)

Built-in Atom Packages (92)
β”œβ”€β”€ atom-dark-syntax@0.29.0
β”œβ”€β”€ atom-dark-ui@0.53.2
β”œβ”€β”€ atom-light-syntax@0.29.0
β”œβ”€β”€ atom-light-ui@0.46.2
β”œβ”€β”€ base16-tomorrow-dark-theme@1.5.0
β”œβ”€β”€ base16-tomorrow-light-theme@1.5.0
β”œβ”€β”€ one-dark-ui@1.12.1
β”œβ”€β”€ one-light-ui@1.12.1
β”œβ”€β”€ one-dark-syntax@1.8.2
β”œβ”€β”€ one-light-syntax@1.8.2
β”œβ”€β”€ solarized-dark-syntax@1.1.4
β”œβ”€β”€ solarized-light-syntax@1.1.4
β”œβ”€β”€ about@1.8.1
β”œβ”€β”€ archive-view@0.64.3
β”œβ”€β”€ autocomplete-atom-api@0.10.7
β”œβ”€β”€ autocomplete-css@0.17.5
β”œβ”€β”€ autocomplete-html@0.8.4
β”œβ”€β”€ autocomplete-plus@2.40.6
β”œβ”€β”€ autocomplete-snippets@1.12.0
β”œβ”€β”€ autoflow@0.29.3
β”œβ”€β”€ autosave@0.24.6
β”œβ”€β”€ background-tips@0.28.0
β”œβ”€β”€ bookmarks@0.45.1
β”œβ”€β”€ bracket-matcher@0.89.2
β”œβ”€β”€ command-palette@0.43.5
β”œβ”€β”€ dalek@0.2.2
β”œβ”€β”€ deprecation-cop@0.56.9
β”œβ”€β”€ dev-live-reload@0.48.1
β”œβ”€β”€ encoding-selector@0.23.8
β”œβ”€β”€ exception-reporting@0.43.1
β”œβ”€β”€ find-and-replace@0.215.9
β”œβ”€β”€ fuzzy-finder@1.8.1
β”œβ”€β”€ github@0.14.5
β”œβ”€β”€ git-diff@1.3.9
β”œβ”€β”€ go-to-line@0.33.0
β”œβ”€β”€ grammar-selector@0.50.1
β”œβ”€β”€ image-view@0.62.4
β”œβ”€β”€ incompatible-packages@0.27.3
β”œβ”€β”€ keybinding-resolver@0.38.1
β”œβ”€β”€ line-ending-selector@0.7.6
β”œβ”€β”€ link@0.31.4
β”œβ”€β”€ markdown-preview@0.159.20
β”œβ”€β”€ metrics@1.2.6
β”œβ”€β”€ notifications@0.70.5
β”œβ”€β”€ open-on-github@1.3.1
β”œβ”€β”€ package-generator@1.3.0
β”œβ”€β”€ settings-view@0.254.2
β”œβ”€β”€ snippets@1.3.3
β”œβ”€β”€ spell-check@0.73.4
β”œβ”€β”€ status-bar@1.8.15
β”œβ”€β”€ styleguide@0.49.11
β”œβ”€β”€ symbols-view@0.118.2
β”œβ”€β”€ tabs@0.109.1
β”œβ”€β”€ timecop@0.36.2
β”œβ”€β”€ tree-view@0.222.0
β”œβ”€β”€ update-package-dependencies@0.13.1
β”œβ”€β”€ welcome@0.36.6
β”œβ”€β”€ whitespace@0.37.5
β”œβ”€β”€ wrap-guide@0.40.3
β”œβ”€β”€ language-c@0.59.3
β”œβ”€β”€ language-clojure@0.22.7
β”œβ”€β”€ language-coffee-script@0.49.3
β”œβ”€β”€ language-csharp@1.0.1
β”œβ”€β”€ language-css@0.42.10
β”œβ”€β”€ language-gfm@0.90.3
β”œβ”€β”€ language-git@0.19.1
β”œβ”€β”€ language-go@0.45.3
β”œβ”€β”€ language-html@0.49.0
β”œβ”€β”€ language-hyperlink@0.16.3
β”œβ”€β”€ language-java@0.29.0
β”œβ”€β”€ language-javascript@0.128.5
β”œβ”€β”€ language-json@0.19.1
β”œβ”€β”€ language-less@0.34.2
β”œβ”€β”€ language-make@0.22.3
β”œβ”€β”€ language-mustache@0.14.5
β”œβ”€β”€ language-objective-c@0.15.1
β”œβ”€β”€ language-perl@0.38.1
β”œβ”€β”€ language-php@0.43.2
β”œβ”€β”€ language-property-list@0.9.1
β”œβ”€β”€ language-python@0.49.5
β”œβ”€β”€ language-ruby@0.71.4
β”œβ”€β”€ language-ruby-on-rails@0.25.3
β”œβ”€β”€ language-sass@0.61.4
β”œβ”€β”€ language-shellscript@0.26.3
β”œβ”€β”€ language-source@0.9.0
β”œβ”€β”€ language-sql@0.25.10
β”œβ”€β”€ language-text@0.7.4
β”œβ”€β”€ language-todo@0.29.4
β”œβ”€β”€ language-toml@0.18.2
β”œβ”€β”€ language-typescript@0.3.3
β”œβ”€β”€ language-xml@0.35.2
└── language-yaml@0.32.0

Community Packages (15) /Users/seren/.atom/packages
β”œβ”€β”€ asciidoc-assistant@0.2.2
β”œβ”€β”€ asciidoc-image-helper@1.0.0
β”œβ”€β”€ asciidoc-preview@2.12.1
β”œβ”€β”€ autocomplete-asciidoc@0.1.2
β”œβ”€β”€ busy-signal@1.4.3
β”œβ”€β”€ editorconfig@2.2.2
β”œβ”€β”€ intentions@1.1.5
β”œβ”€β”€ language-asciidoc@1.11.0
β”œβ”€β”€ language-chef@3.2.1
β”œβ”€β”€ linter@2.2.0
β”œβ”€β”€ linter-foodcritic@0.6.0
β”œβ”€β”€ linter-rubocop@2.2.3
β”œβ”€β”€ linter-ui-default@1.7.1
β”œβ”€β”€ local-history@4.3.1
└── vim-mode-plus@1.32.0

Your entire config.cson

"*":
  autosave:
    enabled: true
  core:
    telemetryConsent: "limited"
  "exception-reporting":
    userId: "dc6b87eb-efdc-4a5c-9731-b6aadb0fd549"
  welcome:
    showOnStartup: false

Your init.coffee

Empty, just the default comments

Anything else you can think of that is relevant

Arrgh.


#87

@paulpv: as DamnedScholar already pointed out: you didn’t experience any data loss, but the exact opposite.

You made edits to the file, but before you could save your computer crashed. After a reboot, the editor still shows the edits you made. This allows you to continue where you got interrupted: your work between saves is not lost. I personally consider this a killer feature, and one I can no longer live without.

The editor also indicates that the file is not saved. In other words: β€œwhat you see before you does not correspond with the current state of this file as it exists on your harddrive”. The procedure for backing out of these changes is the same as it would be for backing out of those same changes had the computer not crashed: close the file without saving.


#88
  1. windows 10 1803 build SO17134.112
    2 atom version 1.28 x64
  2. list ok packages
    Built-in Atom Packages (92)
    β”œβ”€β”€ atom-dark-syntax@0.29.0
    β”œβ”€β”€ atom-dark-ui@0.53.2
    β”œβ”€β”€ atom-light-syntax@0.29.0
    β”œβ”€β”€ atom-light-ui@0.46.2
    β”œβ”€β”€ base16-tomorrow-dark-theme@1.5.0
    β”œβ”€β”€ base16-tomorrow-light-theme@1.5.0
    β”œβ”€β”€ one-dark-ui@1.12.3
    β”œβ”€β”€ one-light-ui@1.12.3
    β”œβ”€β”€ one-dark-syntax@1.8.2
    β”œβ”€β”€ one-light-syntax@1.8.2
    β”œβ”€β”€ solarized-dark-syntax@1.1.4
    β”œβ”€β”€ solarized-light-syntax@1.1.4
    β”œβ”€β”€ about@1.9.1
    β”œβ”€β”€ archive-view@0.64.6
    β”œβ”€β”€ autocomplete-atom-api@0.10.7
    β”œβ”€β”€ autocomplete-css@0.17.5
    β”œβ”€β”€ autocomplete-html@0.8.4
    β”œβ”€β”€ autocomplete-plus@2.40.6
    β”œβ”€β”€ autocomplete-snippets@1.12.0
    β”œβ”€β”€ autoflow@0.29.4
    β”œβ”€β”€ autosave@0.24.6
    β”œβ”€β”€ background-tips@0.28.0
    β”œβ”€β”€ bookmarks@0.45.1
    β”œβ”€β”€ bracket-matcher@0.89.2
    β”œβ”€β”€ command-palette@0.43.5
    β”œβ”€β”€ dalek@0.2.2
    β”œβ”€β”€ deprecation-cop@0.56.9
    β”œβ”€β”€ dev-live-reload@0.48.1
    β”œβ”€β”€ encoding-selector@0.23.9
    β”œβ”€β”€ exception-reporting@0.43.1
    β”œβ”€β”€ find-and-replace@0.215.11
    β”œβ”€β”€ fuzzy-finder@1.8.2
    β”œβ”€β”€ github@0.15.5
    β”œβ”€β”€ git-diff@1.3.9
    β”œβ”€β”€ go-to-line@0.33.0
    β”œβ”€β”€ grammar-selector@0.50.1
    β”œβ”€β”€ image-view@0.62.4
    β”œβ”€β”€ incompatible-packages@0.27.3
    β”œβ”€β”€ keybinding-resolver@0.38.1
    β”œβ”€β”€ line-ending-selector@0.7.7
    β”œβ”€β”€ link@0.31.4
    β”œβ”€β”€ markdown-preview@0.159.20
    β”œβ”€β”€ metrics@1.2.6
    β”œβ”€β”€ notifications@0.70.5
    β”œβ”€β”€ open-on-github@1.3.1
    β”œβ”€β”€ package-generator@1.3.0
    β”œβ”€β”€ settings-view@0.254.2
    β”œβ”€β”€ snippets@1.3.3
    β”œβ”€β”€ spell-check@0.73.4
    β”œβ”€β”€ status-bar@1.8.15
    β”œβ”€β”€ styleguide@0.49.11
    β”œβ”€β”€ symbols-view@0.118.2
    β”œβ”€β”€ tabs@0.109.2
    β”œβ”€β”€ timecop@0.36.2
    β”œβ”€β”€ tree-view@0.222.0
    β”œβ”€β”€ update-package-dependencies@0.13.1
    β”œβ”€β”€ welcome@0.36.6
    β”œβ”€β”€ whitespace@0.37.5
    β”œβ”€β”€ wrap-guide@0.40.3
    β”œβ”€β”€ language-c@0.59.5
    β”œβ”€β”€ language-clojure@0.22.7
    β”œβ”€β”€ language-coffee-script@0.49.3
    β”œβ”€β”€ language-csharp@1.0.4
    β”œβ”€β”€ language-css@0.42.10
    β”œβ”€β”€ language-gfm@0.90.4
    β”œβ”€β”€ language-git@0.19.1
    β”œβ”€β”€ language-go@0.45.3
    β”œβ”€β”€ language-html@0.49.1
    β”œβ”€β”€ language-hyperlink@0.16.3
    β”œβ”€β”€ language-java@0.29.0
    β”œβ”€β”€ language-javascript@0.128.7
    β”œβ”€β”€ language-json@0.19.2
    β”œβ”€β”€ language-less@0.34.2
    β”œβ”€β”€ language-make@0.22.3
    β”œβ”€β”€ language-mustache@0.14.5
    β”œβ”€β”€ language-objective-c@0.15.1
    β”œβ”€β”€ language-perl@0.38.1
    β”œβ”€β”€ language-php@0.43.2
    β”œβ”€β”€ language-property-list@0.9.1
    β”œβ”€β”€ language-python@0.49.5
    β”œβ”€β”€ language-ruby@0.71.4
    β”œβ”€β”€ language-ruby-on-rails@0.25.3
    β”œβ”€β”€ language-sass@0.62.0
    β”œβ”€β”€ language-shellscript@0.26.3
    β”œβ”€β”€ language-source@0.9.0
    β”œβ”€β”€ language-sql@0.25.10
    β”œβ”€β”€ language-text@0.7.4
    β”œβ”€β”€ language-todo@0.29.4
    β”œβ”€β”€ language-toml@0.18.2
    β”œβ”€β”€ language-typescript@0.3.3
    β”œβ”€β”€ language-xml@0.35.2
    └── language-yaml@0.32.0

Community Packages (16) C:\Users\Andrea.atom\packages
β”œβ”€β”€ atom-beautify@0.32.2
β”œβ”€β”€ atom-ide-ui@0.12.0
β”œβ”€β”€ atom-live-server@2.2.0
β”œβ”€β”€ autocomplete-paths@2.12.2 (disabled)
β”œβ”€β”€ autocomplete-project-paths@2.2.0
β”œβ”€β”€ blade-snippets@0.2.0
β”œβ”€β”€ color-picker@2.3.0
β”œβ”€β”€ emmet@2.4.3
β”œβ”€β”€ file-icons@2.1.20
β”œβ”€β”€ highlight-selected@0.13.1
β”œβ”€β”€ javascript-snippets@1.2.1
β”œβ”€β”€ jQuery@1.2.6 (disabled)
β”œβ”€β”€ jquery-snippets@11.0.0
β”œβ”€β”€ language-blade@0.40.0
β”œβ”€β”€ local-history@4.3.1
└── sass-autocompile@0.13.5

4.config.cson
β€œ*”:
β€œatom-beautify”:
css:
beautify_on_save: true
general: {}
html:
beautify_on_save: true
js:
beautify_on_save: true
scss:
beautify_on_save: true
core:
allowPendingPaneItems: false
disabledPackages: [
β€œjQuery”
β€œautocomplete-paths”
]
telemetryConsent: β€œno”
uriHandlerRegistration: β€œalways”
editor:
fontSize: 15
β€œexception-reporting”:
userId: β€œ8e3ccd5a-ff88-4bd5-86f3-27bdf463a4cb”
β€œsass-autocompile”:
compactFilenamePattern: β€œβ€¦/css/$1.compact.css”
compileCompact: true
compileCompressed: false
welcome:
showOnStartup: false
β€œ.blade.html.php.text”:
editor:
commentEnd: " --}}"
commentStart: "{{-- "

5.init.coffee

Your init script

Atom will evaluate this file each time a new window is opened. It is run

after packages are loaded/activated and after the previous editor state

has been restored.

An example hack to log to the console when each text editor is saved.

atom.workspace.observeTextEditors (editor) ->

editor.onDidSave ->

console.log β€œSaved! #{editor.getPath()}”

6.relevat:
second time it happened to me.
just saved and shut down the pc, with no crash or whatsoever. when i got back, surprise, js file totally blank.
want to point out that my laptop have some sleep and ibernation problem, it always shut down when i fold the screen, or after long perdiod of idle time, without going into sleep mode. however the problem presented after asimple shut down. Hope you solve this, i dont want to leave atom
Also, the file is not totally blank, but there is a lot of space that i need to delete, 6 lines at list, like if i had pressed space for a long time.


#89

so, this was 2016 and this just happened to me as well in the end of June 2018. It deleted my css file from my pc and in the editor.

What do i do so this will not happen again?


#90

Use a backup service such as git to make sure that the copy of your code on your computer is never the only copy.


#92

I can see that this is an ancient issue but its still happening to a month old atom user. When this happened the first time I wasn’t bothered because it’s a little work. Anyway let me answer the questions.

Windows 10 Home

1.29.0 x64

Built-in Atom Packages (92)
β”œβ”€β”€ atom-dark-syntax@0.29.0
β”œβ”€β”€ atom-dark-ui@0.53.2
β”œβ”€β”€ atom-light-syntax@0.29.0
β”œβ”€β”€ atom-light-ui@0.46.2
β”œβ”€β”€ base16-tomorrow-dark-theme@1.5.0
β”œβ”€β”€ base16-tomorrow-light-theme@1.5.0
β”œβ”€β”€ one-dark-ui@1.12.3
β”œβ”€β”€ one-light-ui@1.12.3
β”œβ”€β”€ one-dark-syntax@1.8.3
β”œβ”€β”€ one-light-syntax@1.8.3
β”œβ”€β”€ solarized-dark-syntax@1.1.5
β”œβ”€β”€ solarized-light-syntax@1.1.5
β”œβ”€β”€ about@1.9.1
β”œβ”€β”€ archive-view@0.65.1
β”œβ”€β”€ autocomplete-atom-api@0.10.7
β”œβ”€β”€ autocomplete-css@0.17.5
β”œβ”€β”€ autocomplete-html@0.8.4
β”œβ”€β”€ autocomplete-plus@2.40.6
β”œβ”€β”€ autocomplete-snippets@1.12.0
β”œβ”€β”€ autoflow@0.29.4
β”œβ”€β”€ autosave@0.24.6
β”œβ”€β”€ background-tips@0.28.0
β”œβ”€β”€ bookmarks@0.45.1
β”œβ”€β”€ bracket-matcher@0.89.2
β”œβ”€β”€ command-palette@0.43.5
β”œβ”€β”€ dalek@0.2.2
β”œβ”€β”€ deprecation-cop@0.56.9
β”œβ”€β”€ dev-live-reload@0.48.1
β”œβ”€β”€ encoding-selector@0.23.9
β”œβ”€β”€ exception-reporting@0.43.1
β”œβ”€β”€ find-and-replace@0.215.12
β”œβ”€β”€ fuzzy-finder@1.8.2
β”œβ”€β”€ github@0.17.3
β”œβ”€β”€ git-diff@1.3.9
β”œβ”€β”€ go-to-line@0.33.0
β”œβ”€β”€ grammar-selector@0.50.1
β”œβ”€β”€ image-view@0.62.4
β”œβ”€β”€ incompatible-packages@0.27.3
β”œβ”€β”€ keybinding-resolver@0.38.1
β”œβ”€β”€ line-ending-selector@0.7.7
β”œβ”€β”€ link@0.31.4
β”œβ”€β”€ markdown-preview@0.159.20
β”œβ”€β”€ metrics@1.2.8
β”œβ”€β”€ notifications@0.70.5
β”œβ”€β”€ open-on-github@1.3.1
β”œβ”€β”€ package-generator@1.3.0
β”œβ”€β”€ settings-view@0.255.0
β”œβ”€β”€ snippets@1.3.3
β”œβ”€β”€ spell-check@0.73.5
β”œβ”€β”€ status-bar@1.8.15
β”œβ”€β”€ styleguide@0.49.11
β”œβ”€β”€ symbols-view@0.118.2
β”œβ”€β”€ tabs@0.109.2
β”œβ”€β”€ timecop@0.36.2
β”œβ”€β”€ tree-view@0.222.0
β”œβ”€β”€ update-package-dependencies@0.13.1
β”œβ”€β”€ welcome@0.36.6
β”œβ”€β”€ whitespace@0.37.6
β”œβ”€β”€ wrap-guide@0.40.3
β”œβ”€β”€ language-c@0.59.10
β”œβ”€β”€ language-clojure@0.22.7
β”œβ”€β”€ language-coffee-script@0.49.3
β”œβ”€β”€ language-csharp@1.0.4
β”œβ”€β”€ language-css@0.42.11
β”œβ”€β”€ language-gfm@0.90.5
β”œβ”€β”€ language-git@0.19.1
β”œβ”€β”€ language-go@0.45.4
β”œβ”€β”€ language-html@0.50.1
β”œβ”€β”€ language-hyperlink@0.16.3
β”œβ”€β”€ language-java@0.30.0
β”œβ”€β”€ language-javascript@0.128.8
β”œβ”€β”€ language-json@0.19.2
β”œβ”€β”€ language-less@0.34.2
β”œβ”€β”€ language-make@0.22.3
β”œβ”€β”€ language-mustache@0.14.5
β”œβ”€β”€ language-objective-c@0.15.1
β”œβ”€β”€ language-perl@0.38.1
β”œβ”€β”€ language-php@0.44.0
β”œβ”€β”€ language-property-list@0.9.1
β”œβ”€β”€ language-python@0.50.1
β”œβ”€β”€ language-ruby@0.71.4
β”œβ”€β”€ language-ruby-on-rails@0.25.3
β”œβ”€β”€ language-sass@0.62.0
β”œβ”€β”€ language-shellscript@0.26.6
β”œβ”€β”€ language-source@0.9.0
β”œβ”€β”€ language-sql@0.25.10
β”œβ”€β”€ language-text@0.7.4
β”œβ”€β”€ language-todo@0.29.4
β”œβ”€β”€ language-toml@0.18.2
β”œβ”€β”€ language-typescript@0.3.4
β”œβ”€β”€ language-xml@0.35.2
└── language-yaml@0.32.0

Community Packages (3)
β”œβ”€β”€ atom-html-preview@0.2.5
β”œβ”€β”€ file-icons@2.1.24
└── html-tag-auto-complete@0.1.1

β€œ*”:
β€œautocomplete-plus”:
backspaceTriggersAutocomplete: true
autosave:
enabled: true
core:
telemetryConsent: β€œno”
themes: [
β€œone-dark-ui”
β€œsolarized-dark-syntax”
]
β€œexception-reporting”:
userId: β€œf7f7f9c8-2347-4634-8ffb-6ebfc4dae163”
welcome:
showOnStartup: false

Your init script

Atom will evaluate this file each time a new window is opened. It is run

after packages are loaded/activated and after the previous editor state

has been restored.

An example hack to log to the console when each text editor is saved.

atom.workspace.observeTextEditors (editor) ->

editor.onDidSave ->

console.log β€œSaved! #{editor.getPath()}”

Well this may not be considered relevant but I’ll go ahead.
I love the work you guys are doing, there may be a setting I haven’t done so please bare with me.

Awaiting directions to prevent recurrence, Thanks.


#93

As far as we know, this issue is random. Many people use Atom every day and have experienced crashes with no data loss. You may never see it again.


#94

Just happened to me. Agh, lost a ton of work. I opened and closed Atom a few times before I found this thread, so I guess that cleared any chance of recovery. Quite surprising this hasn’t been fixed yet. It seems like it is something with re-opening the App after an OS crash that recovers the files as empty. Very frustrating.


#95

It can only be fixed if it can be replicated. I’ve had multiple blue screens of death while running Atom and I have never once lost a file (and I make sure to always git push my files after reboot, before starting Atom just in case).


#96

I can reproduce it every time. Here are the steps.

Using a Mac w/ Atom version 1.30.0 x64

  • Create new file(s), type some text into them and save it
  • Leave the files open in various tabs
  • Press and hold down the power key until the computer turns off suddenly (don’t shut down normally)
  • Turn back on the computer and say to start all apps.
  • When Atom comes back up, all the files that you left will be blank, and the files will be zero bytes.

#97

Thank you very much @rvnash. I was able to consistently reproduce by following the steps you provided!

It seems to be related to Atom attempting to restore / recover the session. I could not reproduce when I chose not to open previous apps. I’ll look further and see what I can find. Hopefully my computer can take the repeated hard shutdowns.

  • It does reproduce even when Restore Previous Windows on Start is set to no.
  • It only affects the visible file in the editor (other tabs are unaffected)

#98

this just happened to me after macos crash, lost work in all open tabs (saved file become empty after reboot)

the symptom is exact as @Aerijo and @rvnash said, what a horrible bug.


#99

Now that the steps to replicate it with 100% reliability have been elucidated, and given the fact it has such drastically negative impact on users, hopefully it will be fixed soon.


#100

Seems like they are not interested on fixing this since it’s been there for years, never usingthis software again. Well done Atom.


#101

@esau817 This is a rare bug that only affects a handful of users and, up until very recently, had no replication whatsoever. If you know how to solve a problem that you cannot see or touch, then you should write to Switzerland because there’s a Nobel Prize waiting for you.


#102

Hi @DamnedScholar,

No attempt on my part to be critical to past efforts. I’m just trying to help by finding the reproducability path. I will say I did lose a substantial body of work because of this bug. So, even as a rare bug, it can be quite devastating. Hence my desire to get this fixed.


#103

We haven’t been able to find the reason for the bug (I ruled out what I thought it might be), but it looks like we will be keeping recovery files around longer. To be clear, we still care about the bug. This is to protect against complete loss in this and it unforeseen future errors.