So my Atom 1.26.1 still resetting config.cson, how can I figure out who to blame?


#1

Greetings,

I’ve encountered some issue that cause my Atom to randomly reset config.cson file (So I have to manually reconfig everything, it’s annoying).

The problem starts since 1.26.0. After 1.26.1 was released, I noticed one of the problem has been fixed was related to the config file corruption, so I happily upgraded to it thinking it finally gone.

Except however, it isn’t. After use Atom 1.26.1 for awhile, I found my config.cson still getting resetted.

Because the reset is happened randomly, it’s hard for me to figure out which one to blame. So I thought I post could my information where so other people whom encountered the same problem may have something to lookup with.

Normal configuration that I use:

$ cat ~/.atom/config.cson 
"*":
  core:
    telemetryConsent: "no"
  editor:
    showIndentGuide: true
    showInvisibles: true
    tabLength: 4
    zoomFontWhenCtrlScrolling: false
  "exception-reporting":
    userId: "265c13c0-7568-4bdf-8ca8-a24c37e05f23"
  "go-plus":
    test:
      timeout: 3000
  "linter-ui-default":
    panelHeight: -3
  welcome:
    showOnStartup: false

Package installed:

$ ls -l ~/.atom/packages/
总用量 88
drwxrwxr-x  6 rany rany 4096 1月  22 17:14 autocomplete-racer
drwxrwxr-x  7 rany rany 4096 6月  17  2017 busy-signal
drwxrwxr-x  9 rany rany 4096 3月  31 15:23 git-plus
drwxrwxr-x  9 rany rany 4096 4月  23 23:51 go-debug
drwxrwxr-x  8 rany rany 4096 5月  28  2017 godef
drwxrwxr-x  7 rany rany 4096 5月  28  2017 go-impl
drwxrwxr-x  5 rany rany 4096 5月  28  2017 go-imports
drwxrwxr-x  8 rany rany 4096 5月  28  2017 go-oracle
drwxrwxr-x  9 rany rany 4096 3月  31 15:24 go-outline
drwxrwxr-x 10 rany rany 4096 4月   5 18:54 go-plus
drwxrwxr-x  6 rany rany 4096 5月  28  2017 go-rename
drwxrwxr-x  6 rany rany 4096 9月  22  2017 go-signature-statusbar
drwxrwxr-x  8 rany rany 4096 5月  28  2017 go-types
drwxrwxr-x  4 rany rany 4096 9月  22  2017 hyperclick
drwxrwxr-x  8 rany rany 4096 9月  22  2017 intentions
drwxrwxr-x  7 rany rany 4096 9月  22  2017 language-rust
drwxrwxr-x  7 rany rany 4096 6月  17  2017 linter
drwxrwxr-x  6 rany rany 4096 1月  26 19:43 linter-gcc
drwxrwxr-x  7 rany rany 4096 3月  31 15:23 linter-ui-default
drwxrwxr-x 12 rany rany 4096 3月  31 15:23 minimap
-rw-rw-r--  1 rany rany   60 5月  28  2017 README.md
drwxrwxr-x  4 rany rany 4096 1月  22 16:51 rustfmt

For now, I sort of nailed the problem by chmod -w ~/.atom/config.cson, this will cause Atom to popup a warning during start up, but everything else is alright (Other than the fact that you can’t change setting anymore)


#2

Same questions as with every support request:

Have done all of the following:

The first bullet point is essential to rule out that any third-party package is causing this.


#3

Thanks, I will try run Atom in safe mode when I have free time.


#4

What operating system are you on? Obviously Unix-based, but there are a lot of those.


#5

It’s Ubuntu 18.04 LTS


#6

It looks like you’re using linter so you have linter-ui-default installed - there was a settings issue that specifically references linter-ui-default and how it can cause settings loss:

A potential fix landed in 1.27.0-beta1 (https://github.com/atom/atom/releases/tag/v1.27.0-beta1) so hopefully once you’re on 1.27 you won’t see this anymore (if linter-ui-default is in fact the issue in your case).


#7

Thank you, I’ll keep track of that and make update when needed.