On Fri, Nov 8, 2019 at 8:35 AM vitalije <[email protected]> wrote: > >> 1) Eliminate the generation of a GNX before reading a file. >>> >> >> Hmm. I wasn't aware that Leo did that. Why does this cause problems? >> >> Since the hidden root node always has GNX hidden-root-vnode-gnx, the >>> motivation for this GNX generation is very mysterious to me. >>> >> >> Me too :-) >> >> > I believe that Leo creates some vnodes during the startup and therefore > generates gnx. For example when scripting plugin creates buttons and > commands it creates and stores v instances. > > Perhaps the solution would be to clear gnxDict before reading a new file. >
The stack trace I included in my comment ( https://github.com/leo-editor/leo-editor/issues/1348#issuecomment-542014635) shows where I saw the gnx being generated before reading the file. In this method, I guess: leo/core/leoFrame.py(706)createFirstTreeNode() -- 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/CAO5X8Cyfg%3DqFM0ZsGu%3D8MoX78EyJbtUKBVxOthqmWsRSHbMXWw%40mail.gmail.com.
