Chapter-Select command

2017-02-09 Thread lewis
It seems the Chapter-Select command is not working. I tested with @chapter Name 1 Name 2 Cmds> Chapters> Chapter-Select: Minibuffer: Select Chapter: Name 1 reports * 'no such @chapter node: Name 1'Leo Log WindowLeo 5.4, build 20170209132654, Thu Feb 9 13:26:54 CST 2017Git repo

Re: Warning: imp.reload hurts super and TDD

2017-02-09 Thread Edward K. Ream
On Thu, Feb 9, 2017 at 9:39 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > Ha, snap - I just ran into the the same issue with VR-4. > ​This is one of the best adverts for Python 3 that I know. Alas, we are stuck, for now, with Python 2. Funny how nobody complains that

Aha: a new scripting pattern

2017-02-09 Thread Edward K. Ream
In another thread I said that a breakthrough in documentation is lurking. And it probably is. Here, I'd like to report *another*, completely unexpected breakthrough. *Aha*: Let each node in a demo script tree contain *multiple

Re: Turning to documentation

2017-02-09 Thread Edward K. Ream
​​ On Thu, Feb 9, 2017 at 8:55 AM, Edward K. Ream wrote: ​> ​ The feeling is that good docs may be akin to small chunks of code ​. I've spent the last hour or so working on my first "real" demo. As expected, this has suggested a few tweaks to the code, on master. But a

Re: Warning: imp.reload hurts super and TDD

2017-02-09 Thread 'Terry Brown' via leo-editor
Ha, snap - I just ran into the the same issue with VR-4.  Initially using reload for faster development, then in the way the core module loads the view modules.  imp.load_module also acts as a reload.  Using reload for dev. aside, my problem was descending the markdown view module from the html

Re: Turning to documentation

2017-02-09 Thread Edward K. Ream
On Friday, February 3, 2017 at 6:35:48 AM UTC-6, Edward K. Ream wrote: > There have been a number of excellent suggestions for Leo's documentation: > Next: #356 Scripting documentation for new users of leoeditor.

Re: Warning: imp.reload hurts super and TDD

2017-02-09 Thread Edward K. Ream
On Thursday, February 9, 2017 at 8:29:56 AM UTC-6, Edward K. Ream wrote: > Leo's TDD design involves imp.reload . Alas, *imp.reload affects super calls!* ... > This kind of pattern verges on the intolerable. The python 2 part is a revolting mess.

Warning: imp.reload hurts super and TDD

2017-02-09 Thread Edward K. Ream
Leo's TDD design involves imp.reload . Alas, *imp.reload affects super calls!* This glitch cost me a lot of time last night. The workaround was to use this pattern, which could be called a form of documentation, and a warning: if g.isPython3:

Re: demo.py is ready for use and extension

2017-02-09 Thread Edward K. Ream
On Wednesday, February 8, 2017 at 6:17:15 AM UTC-6, Edward K. Ream wrote: Revs fdb0e9c and 2b2fffea complete work on the essentials of the demo.py > plugin. > I spent all day polishing the plugin. Now it's time to start using it! Rev cf424c5 completes the demo's docs, demo.md