Leo's colorizing machinery suffers from one of Leo's worst bugs in decades. The symptoms: text in LeoDocs.leo disappears. I don't yet know the exact circumstances that cause this disappearance.
I do know one node that suffered disappearing text:
Theory of operation: c.deletePositionsInList
Here's why the bug is dangerous. All the text following the following sections disappeared.
**Completing the proof**
and
**Discussion
I was tempted to delete these "empty" sections. I would have lost data!
Summary
Do not delete apparently empty sections when @language rest is in effect. You may unwittingly lose data if you do.
My apologies for this mess. I'll fix this bug later today or tomorrow. I presume this bug stems from recent changes to leoColorizer.py or mode files.
Edward
Leo's colorizing machinery suffers from one of Leo's worst bugs in decades. The symptoms: text in LeoDocs.leo disappears. I don't yet know the exact circumstances that cause this disappearance.
I can now reproduce the bug reliably:
I am less confident now. This bug is one of the most mysterious I have ever encountered!
I have a candidate fix that is simpler and better on other grounds. Nevertheless, I still have no idea why the colorizer failed so spectacularly. I have only some conjectures.
On Thursday, November 14, 2024 at 4:45:32 PM UTC-6 Edward K. Ream wrote:>> I can now reproduce the bug reliably: Issue #4181 contains the details.> I am confident that I can crush this bug soon.I am less confident now. This bug is one of the most mysterious I have ever encountered!
I have a candidate fix that is simpler and better on other grounds. Nevertheless, I still have no idea why the colorizer failed so spectacularly. I have only some conjectures.
I shall merge a new PR later today. That plan seems prudent. An early merge will cost us nothing:
Summary
- I shall merge a new PR later today. There is no guarantee that this PR is rock solid.- My investigations continue. A new ENB will discuss my conjectures and plans.
On Fri, Nov 15, 2024 at 6:03 AM Thomas Passin <tbp1...@gmail.com> wrote:> I was not able to reproduce this bug using yesterday's version of devel.Issue #4181 now more clearly describes how to reproduce the bug.
> You wrote that you encountered the bug in a private branch.I was seriously confused at first. I wasn't very clear about the sequence of events.The bug undoubtedly exists. It happens reliably (in devel) if one knows how to make it happen.I examined this bug for about 8 hours yesterday. I now know exactly when the bug happens, but I still do not understand why it happened or exactly why the PR makes it go away. To repeat:- This is one of the most mysterious bugs in Leo's history.