On Fri, Jul 3, 2009 at 7:51 PM, Dave <[email protected]> wrote:

>
> Leo is destroying data! :(


First of all, my appologies for this.  It's not acceptable ever to lose
data.

I have a bad feeling about this.  The bug is uncomfortably related to a
recently-changed method:
leoFileCommands.handleVnodeSaxAttributes.  I changed this a few days ago,
and added a unit test, but the unit test is not a guarantee that changes did
not cause problems.

The question is, did you get bit by a recent change, or are you just now
getting bit by a long-standing problem?

Hmm.  It looks like I lost data in an @file node in leoPlugins.leo
yesterday.  So maybe this is a new, critical bug. The fear is that a new bug
is destroying all tnode lists.

This is definitely a show-stopper for rc1.  I must determine, first of all,
whether @file nodes work at all.  It may be that they do not, which would
actually be good news in the sense that it would be easier to fix the
problem.

Edward

P.S. @file nodes should go, but now, very late in the release cycle, is not
the time to make such a huge change  The less-virulent form of @file node
problems has been around for several years, or maybe forever.

Probably the way to do kill @file is to treat @file just like @thin when
writing. This will happen in the next official release.

P.P.S. There are several ways the data loss may have happened, even without
a new bug:

1. "Old" versions of .leo files may have tnode lists (in root @file nodes)
that don't match the node indices in the external files.  Using such a .leo
file will cause problems: the old data is the enemy of the new.

2. It may be possible to create the same problem by writing the external
file with the write-at-file-nodes command, and then failing to save the .leo
file.

Both of these are unproven hypotheses.  In a collaborative environment, the
possibilities for mismatches between .leo files and the supposedly
corresponding external files multiplies further.

EKR

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to