atom / settings-view

🔧 Edit Atom settings
MIT License
272 stars 275 forks source link

Settings unexpectedly lost when running multiple simultaneous instances #280

Open wyqydsyq opened 9 years ago

wyqydsyq commented 9 years ago

When running multiple instances of Atom, my config.cson is frequently reset to the default.

I'm unsure of the cause of this but I something corrupts my config resulting in a fresh one being generated, possibly multiple instances attempt to write to it at the same time resulting in it breaking. It seems to happen more frequently the more instances I have open.

A possible solution would be to keep a config.cson.bak and add a check for that backup to the function that generates a new config, so if for whatever reason a new config needs to be generated, it'll use the backup if one exists. Obviously that wouldn't solve the cause but it would at least mean users don't have to reconfigure the entire app when this happens.

I'm running Atom 0.152 on OpenSUSE 13.2

Not sure if this belongs in this repo or the core Atom repo, let me know if I should move it.

kevinsawicki commented 9 years ago

/cc @maxbrunsfeld this sounds like possibly what @jspahrsummers was seeing today

maxbrunsfeld commented 9 years ago

Hi @pyrokinetiq, can you upgrade to the latest Atom version and report whether this still happens? Also, what packages do you currently have installed (apm list)?

wyqydsyq commented 9 years ago

@maxbrunsfeld I'm on 0.165 now and haven't noticed happening recently however I haven't worked on multiple projects in a while. I'll comment again if it occurs again.

apm list returns the following:

/home/damon/.atom/packages (31)
├── atom-solo-dark-ui@1.2.0
├── atomatigit@1.0.1
├── auto-indent@0.1.0
├── autoclose-html@0.12.0
├── autocomplete-paths@0.7.0
├── autocomplete-plus@0.22.3
├── base16-ocean-dark@0.3.0
├── color-picker@1.2.6
├── dark-petroleum-syntax@0.1.3
├── file-icons@1.4.2
├── git-history@1.1.2
├── git-plus@4.2.3
├── git-tab-status@1.3.0
├── grammar-token-limit@0.1.0
├── hecs-dark-theme-syntax@0.1.0
├── hecs-dark-ui@0.1.2
├── highlight-line@0.9.2
├── highlight-selected@0.6.3
├── itg-dark-syntax@0.3.0
├── itg-dark-ui@0.2.0
├── lanai-dark-ui@0.4.0
├── language-ejs@0.1.0
├── minimap@3.3.18
├── minimap-highlight-selected@3.0.0
├── monokai@0.9.0
├── pastel-dark-theme@0.1.2
├── pretty-json@0.3.1
├── project-manager@1.14.0
├── regex-railroad-diagram@0.6.3
├── remember-session@0.5.1
└── solarized-dark-ui@0.3.0