Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-26 Thread vitalije
As I wrote in the #1348 it is my belief that this issue is caused by operating system itself. It seems that subprocess.call returns before process has fully finished and its file operations are actually flushed to di

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-24 Thread vitalije
SegundoBob, when I change in the test03.py script: # leoPfn = pathlib.Path('test.leo') # to leoPfn = pathlib.Path('test.db') There is no error reported with the phantom NewHeadline. However, every 4-5 seconds Leo reports a gnx clash. The next thing I am going to look for potential places where

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-24 Thread Edward K. Ream
On Tuesday, September 24, 2019 at 4:34:19 AM UTC-5, Edward K. Ream wrote: > > > > On Mon, Sep 23, 2019 at 5:56 PM SegundoBob wrote: > >> *I think the bug is in Leo-Editor* >> > > Please file a new issue. > In the new issue, please pretend I know nothing of the old issue and its long history.

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-24 Thread Edward K. Ream
On Mon, Sep 23, 2019 at 5:56 PM SegundoBob wrote: > *I think the bug is in Leo-Editor* > Please file a new issue. Edward -- 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

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-23 Thread vitalije
SegundoBob, it seems that google has stripped your attached files. Clicking in the link test03 does nothing. You can find the three Python files composing test03 here test03 > > Can you post them in github or directly to my email: vitalijem (at) gmail dot (ending as usual). Vitalije -- You r

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-23 Thread SegundoBob
*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

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-22 Thread vitalije
O.k. just add two more lines: bridge.g.app.commander_cacher = leoCache.CommanderCacher() bridge.g.app.commander_db = bridge.g.app.commander_cacher.db HTH Vitalije On Monday, September 23, 2019 at 1:22:57 AM UTC+2, SegundoBob wrote: > > I spoke too soon. All the easy symptoms turned out to be b

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-22 Thread SegundoBob
I spoke too soon. All the easy symptoms turned out to be bugs in my test programs. No surprise there. I'm back to trying to produce the "Phantom Headline" symptom, and unfortunately Vitalije's work around doesn't work. It does get me through the second Leo-Editor file open, but then it fails

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-22 Thread vitalije
On Sunday, September 22, 2019 at 7:26:20 PM UTC+2, SegundoBob wrote: > > > > On Sunday, September 22, 2019 at 2:12:03 AM UTC-7, Edward K. Ream wrote: >> >> On Friday, September 20, 2019 at 5:33:31 AM UTC-5, Edward K. Ream wrote: >> >> Sounds like a worthy bug. Thanks for sharing it with us. >>>

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-22 Thread SegundoBob
On Sunday, September 22, 2019 at 2:12:03 AM UTC-7, Edward K. Ream wrote: > > On Friday, September 20, 2019 at 5:33:31 AM UTC-5, Edward K. Ream wrote: > > Sounds like a worthy bug. Thanks for sharing it with us. >> > > A few more thoughts. > > I spent yesterday trying to put together a small test

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-22 Thread Edward K. Ream
On Friday, September 20, 2019 at 5:33:31 AM UTC-5, Edward K. Ream wrote: Sounds like a worthy bug. Thanks for sharing it with us. > A few more thoughts. 1. A good goal would be to drop into the debugger (g.pdb) when the bug happens. Easier said than done, surely. If you *can* do this, then yo

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-21 Thread vitalije
Have you in fact ever seen a phantom vnode? I have not. > > SegundoBob > >From time to time I bump on something like this, mostly because I tend to search for nodes using c.fileCommands.gnxDict, or when I manually build subtree and forget to create two way binding between children and pare

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-20 Thread SegundoBob
On Friday, September 20, 2019 at 3:33:31 AM UTC-7, Edward K. Ream wrote: > If your .leo files contain external files, I would also trace > fast_at.scan_lines in leoAtFile.py. > > The problem files are small and they do not contain any external files. Thanks for your suggestions. I'll continu

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-20 Thread SegundoBob
On Thursday, September 19, 2019 at 10:41:46 PM UTC-7, vitalije wrote: > > I don't know how you go through the nodes of these two files. > I obtain all the vnodes by doing a depth first walk starting at cmdr.hiddenRootNode. The attribute vnode.children gives me the children of each vnode. I

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-20 Thread Edward K. Ream
On Thursday, September 19, 2019 at 5:02:54 PM UTC-5, SegundoBob wrote: This bug may be in my code or in Leo-Editor code. I have been seeing > occurrences for at least two weeks. > > The bug occurs when I run my unit tests for my program that compares two > Leo-Editor files. I have 41 unit test

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-19 Thread vitalije
Can you share your code for the second process that compares outlines D and expected D. I don't know how you go through the nodes of these two files. A phantom node that can't be seen might be a node which is not properly connected. Every vnode has to be linked to its parent i.e. its parent node

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-19 Thread SegundoBob
On 9/19/19 5:22 PM, Brian Theado wrote: > It isn't clear from your description what your 2nd subprocess.call is executing. The second subprocess.call() executes my compare Leo-Editor files program. This is the same program executed by my first subprocess.call(). Thanks for your suggestions.

Re: Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-19 Thread Brian Theado
Without seeing actual code, I find it difficult to understand your explanation enough to come up with any guess. But it seems you have 3 things: leo code, your comparison code, and your unit test code. Since this problem started happening, at least one of those things had to have changed right? I s

Unpredictable bug: "NewHeadline" instead of actual headline

2019-09-19 Thread SegundoBob
*Leo-Editor Version:* Leo 6.1-devel, devel branch, build f5986d8016 2019-08-09 10:23:41 -0500 Python 3.6.8, PyQt version 5.11.1 *Bug Description:* This bug may be in my code or in Leo-Editor code. I have been seeing occurrences for at least two weeks. The bug occurs when I run my unit tests f