*I think the bug is in Leo-Editor* test03 produces the same bug symptom as my unit tests of my compare Leo-Editor files:
"NewHeadline" is seen by LeoBridge but the disk file is correct and does not contain "NewHeadline". For test03 errors/loops is larger, but the errors are still unpredictable with many error free loops. For example. 31 loops 18 errors 58% errors/loops 51 loops 32 errors 62% errors/loops Based on the above evidence, I think the bug is in Leo-Editor. You can find the three Python files composing test03 here test03 <<script src="https://gist.github.com/SegundoBob/c52f070da864448003dccbc8dc7f2303.js"></script>> *Bug Symptoms* Each of the following should not be: The root node has two parents. Both parents are the hidden root node. Ordinarily, the root node has exactly one parent. The root node is the only node and its headline is "NewHeadline". Note: I believe that Leo-Editor until recently set new node headlines to "NewHeadline", but now in most cases Leo-Editor sets new node headlines to "newHeadline" (no capital letter). *Test run breaking on the first error (test03 modified slightly since this run, to exit gracefully and to conditionally insert breakpoints)* > > 2019-09-23 14:55:24 /pri/git/leo_bug_demos/2019-09-21-Phantom-NewHeadline $ ./test03.py Leo 6.1-devel, devel branch, build 53cf6d1bb1 2019-09-23 10:35:13 -0500 Expected: 0 Headline 0.0 Headline 0.0.0 Headline 0.1 Headline 0.2 Headline 0.2.0 Headline Actual: NewHeadline > /pri/git/leo_bug_demos/2019-09-21-Phantom-NewHeadline/check_file.py(117)checkOutline() -> exit(50) (Pdb) where /pri/git/leo_bug_demos/2019-09-21-Phantom-NewHeadline/check_file.py(121)<module>() -> main() /pri/git/leo_bug_demos/2019-09-21-Phantom-NewHeadline/check_file.py(56)main() -> checkOutline(cmdrT, outline) > /pri/git/leo_bug_demos/2019-09-21-Phantom-NewHeadline/check_file.py(117)checkOutline() -> exit(50) (Pdb) l 112 print(hdr) 113 print('Actual:') 114 for hdr in walkList: 115 print(hdr) 116 import pdb; pdb.set_trace() 117 -> exit(50) 118 #@-others 119 120 if __name__ == "__main__": 121 main() 122 #@-leo (Pdb) walkList ['NewHeadline'] (Pdb) root <pos 140033515115520 childIndex: 0 lvl: 0 key: 140033515118376:0 NewHeadline> (Pdb) root.v <VNode bob.20190923145528.2 NewHeadline> (Pdb) root.v.parents [<VNode hidden-root-vnode-gnx <hidden root vnode>>, <VNode hidden-root-vnode-gnx <hidden root vnode>>] (Pdb) root.v.children [] (Pdb) root.v.parents[0] <VNode hidden-root-vnode-gnx <hidden root vnode>> (Pdb) root.v.parents[0].children [<VNode bob.20190923145528.2 NewHeadline>] (Pdb) cmdrT Commander 140033515115464: '/pri/git/leo_bug_demos/2019-09-21-Phantom-NewHeadline/test.leo' (Pdb) -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/b8987592-742d-4a06-ba98-a0339a47c826%40googlegroups.com.
