From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Tue, 12 Jun 2007 17:48:50 -0700 Subject: [sup-talk] ~/.sup/sources.yaml disappearing In-Reply-To: <1181576042-sup-5097@south> References: <1181497661-sup-448@mona> <1181512336-sup-912@mona> <1181576042-sup-5097@south> Message-ID: <1181695661-sup-6575@south> Excerpts from William Morgan's message of Mon Jun 11 08:42:42 -0700 2007: > Excerpts from jeff.covey's message of Sun Jun 10 14:57:11 -0700 2007: > > [Sun Jun 10 16:07:48 -0400 2007] good night, sweet prince! > > [Sun Jun 10 16:07:48 -0400 2007] saving index and sources... > > ./lib/sup/util.rb:313:in `send': undefined method `draw_screen' for nil:NilClass (NoMethodError) > > Ok, here's my first problem. :) This particular problem should now be fixed, and similar problems mitigated. > I believe this happens when Sup dies in the process of "saving index > and sources...". The right answer is to remove all possible the > sources of error in that process, but maybe I can also change the code > to be a little more resilient. Let me take a look. I'm still not sure why sources.yaml, of all files, would end up being zero, since the write was pretty atomic, but I've now made it even more atomic, so hopefully this shouldn't happen too often any more. -- William