vellerefond / project-ring

Project management for the Atom editor.
GNU General Public License v2.0
15 stars 8 forks source link

Atom not responding if default_project_ring.cson empty #46

Closed underdpt closed 8 years ago

underdpt commented 8 years ago

Hi,

I had an atom crash and found that everytime I open it, it wasn't responding. After investigating, I found that disabling project-ring allowed me to open Atom. I uninstalled project-ring, reinstalled it but the issue remained. I cleaned atom cache, even deleted compile-cache but it failed again. Then I found that the default_project_ring.cson file was empty (I think the first crash was the culprit). After recovering a backup, it worked perfectly.

I've made some tests, cutting a working file on various points and it seems the plugin works correctly (it simply doesn't loads the affected projects). Only if the file is empty it fails.

I think there should be a check and if the default_project_ring.cson file is corrupt the plugin should emit a warning and not try to load it.

Thanks

vellerefond commented 8 years ago

@underdpt, thank you very much for finding and reporting this. Please, update to v0.38.0.