b9ecf41: Ding dong, the switch is dead, the wicked old switch is dead

2017-04-06 Thread Edward K. Ream
All tests pass without the atAuto switch/ivar in Leo's read/write code. A cff confirms that atAuto appears nowhere in Leo's core. This is a significant change in Leo. Please report any problems immediately. I did the work in the "import" branch, but immediately merged it into master. I see

Re: Possible bug in pluginsController.registerOneHandler

2017-04-06 Thread Edward K. Ream
On Thu, Apr 6, 2017 at 8:39 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > On Thu, 6 Apr 2017 03:49:25 -0700 (PDT) > vitalije wrote: > ​Thanks, Vitalije, for your work. e2ad1d1 contains it, slightly modified. All my unit tests pass. I've marked

Re: Bug in checkFileTimeStamp

2017-04-06 Thread Edward K. Ream
On Thu, Apr 6, 2017 at 9:28 AM, vitalije wrote: Today I have spent several hours trying to understand why my script that > uses leoBridge to create template outline with several external files won't > save correctly. Finally I found the culprit in checkFileTimeStamp > ​Many

How to install pyEnchant w/ Anaconda on Windows?

2017-04-06 Thread Largo84
Just now setting up a new machine and I thought I would try the Anaconda route (Win10). So far so good, at least getting Leo to run. However, I can't figure out how to install the pyEnchant package. I intentionally chose the 32 bit version of Anaconda as I understood that's what pyEnchant

Re: How to install pyEnchant w/ Anaconda on Windows?

2017-04-06 Thread Chris George
1. Install Virtualbox. 2. Install Linux. 3. Install Anaconda. 4. Install Leo. At that point it just becomes another icon to another program. Chris On Thu, Apr 6, 2017 at 10:48 AM, Largo84 wrote: > >> >> So just replace Win-10 with a Linux system and you should be good to >>

Re: How to install pyEnchant w/ Anaconda on Windows?

2017-04-06 Thread 'Terry Brown' via leo-editor
On Thu, 6 Apr 2017 09:49:39 -0700 (PDT) Largo84 wrote: > Just now setting up a new machine and I thought I would try the > Anaconda route (Win10). So far so good, at least getting Leo to run. > However, I can't figure out how to install the pyEnchant package. I > intentionally

Re: How to install pyEnchant w/ Anaconda on Windows?

2017-04-06 Thread Largo84
> > > > So just replace Win-10 with a Linux system and you should be good to > go... > Ha! Not really an option here (work computer, it's not even mine). > > Sorry it wasn't a more helpful outcome. You can install it from here: > http://pythonhosted.org/pyenchant/download.html > > I think

Re: ENB: The bane of code: evil "if" statements

2017-04-06 Thread Edward K. Ream
On Thursday, April 6, 2017 at 4:34:07 AM UTC-5, Edward K. Ream wrote: > A big oops: There are two more *important *uses of atAuto in ic.createOutline: [snip] A giant step forward. All unit tests pass when ic.createOutline asserts atAuto is False. To make this happen, ic.scannerUnitTest

Re: ENB: The bane of code: evil "if" statements

2017-04-06 Thread Edward K. Ream
On Thursday, April 6, 2017 at 4:51:11 AM UTC-5, Edward K. Ream wrote: > 1. All atAuto args to ic.scannerUnitTest can be eliminated... > 2. All atAuto args to all importers can be eliminated. > 3. The following code in i.gen_ref never fires and can be eliminated:... > We are about to see the end

6cdd383 merges the "import" branch into master. Please test

2017-04-06 Thread Edward K. Ream
The recent work in the "import" branch is a giant collapse in complexity in Leo's core. I see no reason to delay wider testing. No matter what happens, we aren't going back to the bad old code. This work affects Leo's import commands and @auto operation. Please report any problems

Re: ENB: The bane of code: evil "if" statements

2017-04-06 Thread Edward K. Ream
On Wednesday, April 5, 2017 at 12:10:51 PM UTC-5, Edward K. Ream wrote: ​The new plan is for all callers of ic.createOutline to set up the root > node for the import, and then call a simper version of ic.createOutline. > This has been a great success. Rev b11b62 of the "import" branch contains

Re: Possible bug in pluginsController.registerOneHandler

2017-04-06 Thread vitalije
I tried to `git push` my corrections but was refused with status 403. So I forked leo-editor and pushed changes to my fork of leo-editor. I have added two new @test nodes in leo/test/unitTest.leo that test expected behavior of registerOneHandler and registerOneExclusiveHandler. After that I

Re: Possible bug in pluginsController.registerOneHandler

2017-04-06 Thread vitalije
Pull request is here Vitalije -- 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

Re: How to install pyEnchant w/ Anaconda on Windows?

2017-04-06 Thread lewis
The version at http://pythonhosted.org/pyenchant/download.html is 1.6.6 However a later win32.exe 1.6.8 version is available at https://pypi.python.org/pypi/pyenchant/1.6.8 Lewis -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe

Re: How to install pyEnchant w/ Anaconda on Windows?

2017-04-06 Thread Jacob MacDonald
Slow down! You can still use good old pip: pyEnchant has a Win32 wheel for Python 2.7+. I'm not sure of your specifics, but I have a Leo instance running on a work machine. Conda will play nice with the package, so don't worry about the environment getting changed irreversibly. On Thu, Apr 6,

Re: ENB: The bane of code: evil "if" statements

2017-04-06 Thread Edward K. Ream
On Thursday, April 6, 2017 at 4:06:04 AM UTC-5, Edward K. Ream wrote: > *To do: eliminate the atAuto switch* > ... > After the recent simplifications, the atAuto keyword arg to > ic.createOutline can now be seen to have two quite different purposes: > > A. The atAuto keyword arg is passed to