interesting places on the web

2019-10-12 Thread Matt Wilkie
Every once in a long while I run into a site out there in digital space 
that renderes me speechless and I just can't stop exploring and reading and 
clicking. Sometimes it's the eye candy, other times it's deep thoughts, or 
cool new user interface paradigms, or just damn interesting people. And 
sometimes, sometimes I just can't quite figure out what it is or why I'm 
intrigued. This is one of those:

*https://xxiivv.com/*

It's worth some time, even if I haven't quite found the the words to say *why, 
*it just is.

-matt

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9e840931-d133-4a0e-8f47-f6e036450471%40googlegroups.com.


Re: @button for displaying all parents of a clone to log pane

2019-10-12 Thread Edward K. Ream
On Sat, Oct 12, 2019 at 8:53 AM Brian Theado  wrote:

But vnode2allPositions is used in the leo-editor by the method
> c.cloneFindParents. The vnode2allPositions method has this in its doc
> string:
>
> "Not really all, just all for each of v's distinct immediate parents."
>
>
> I'm guessing it does exactly what Edward wants it to because he uses the
> clone-find-x commands all the time.
>

I don't remember anything about this method, and I doubt that I wrote the
part of the docstring you quote.  In any case, please do *not* change this
method.  If necessary, write another method.

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 email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1qVugs%2BFNSRhWd%3Do5AVDVb6Z3Vmpp4AP-%3DZH9yjYQyHw%40mail.gmail.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Edward K. Ream
On Sat, Oct 12, 2019 at 7:10 AM Viktor Ransmayr 
wrote:

>
> @Edward: Has been a deliberate design decision of your side &  if yes,
> please explain why?
>

I'm delegating all choices to Matt.

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 email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0%3DeOnswway21LuWU8njx2URoLDKPLz2UxVGhKYjhh%2BeA%40mail.gmail.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Arjan
I downgraded to Node.JS 10.16.3, but the error remains the same (`from 
python Error importing leoApp.py`)

I also tried creating a python3.bat file on my PATH, which says 
`%windir%\system32\cmd.exe /K ""C:\Programs\Anaconda3\Scripts\activate.bat" 
&& %*"`.
Now there's no more errors, but still no "Load File" button. I always 
forget the correct options for batch files though, maybe this isn't quite 
right.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f8d71fdc-8f02-458d-bf9a-26a17297f24e%40googlegroups.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Félix
@Arjan Could totally be node 12! maybe its a stretch to think so, but at 
work we had problems on a bunch of unrelated stuff and using 'LTS' 
supported version 10 instead of the pre-release 12 fixed it ! ... so I 
wouldn't be surprised if the beta node 12 was a problem. (node is the 
engine running all the debug stuff of vscode) might be worth a try to 
replace node 12 by the more stable node 10 (if its not a major 
inconvenience for you to try this out)

On Saturday, October 12, 2019 at 4:10:21 PM UTC-4, Arjan wrote:
>
> Hmm, I'm sure I saw Python 2.7 getting installed, as well as Chocolatey 
> and one or more MS dependencies, perhaps one of those triggered it. But I 
> was just mentioning that message for completeness.
>
> As for versions:
> - VSCode 1.39.1
> - Node.JS 12.11.1 -- that seems like the only significant difference, but 
> seems an unlikely cause for the problem?
> - Leo 6.0-final (master branch from Git)
> - Python 3.7.3 (via Anaconda)
> - PyQt version 5.9.6 (installed via `conda install pyqt` -- as far as I 
> remember, and put in my notes, I didn't specify anything further for Qt5 
> itself).
>
> Cheers,
> Arjan
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/57812f0f-caaf-4204-b44a-821622105fd7%40googlegroups.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Arjan
Hmm, I'm sure I saw Python 2.7 getting installed, as well as Chocolatey and 
one or more MS dependencies, perhaps one of those triggered it. But I was 
just mentioning that message for completeness.

As for versions:
- VSCode 1.39.1
- Node.JS 12.11.1 -- that seems like the only significant difference, but 
seems an unlikely cause for the problem?
- Leo 6.0-final (master branch from Git)
- Python 3.7.3 (via Anaconda)
- PyQt version 5.9.6 (installed via `conda install pyqt` -- as far as I 
remember, and put in my notes, I didn't specify anything further for Qt5 
itself).

Cheers,
Arjan

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/3c17b032-1f8c-4063-b651-00d5b54a6824%40googlegroups.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Félix
@arjan Yep, it wont work with python2, but I can assure you nodejs does not 
install nor bundle python2 with itself!. Also what version of Leo and 
python do you have? I made all run under leo 6.0 final (installed from 
sources git clone --depth=500 https://github.com/leo-editor/leo-editor) and 
python 3.7.4
I'm asking this because you're getting "Error importing leoApp.py" as your 
main error message and it's bugging out in initLeo, which is internal to 
leo, so i'm wondering what Leo version its using...  

@Edward (on windows) those modified 'package' files are getting small 
modifications when doing 'npm install' because of versions of dependencies 
getting updates.( Something I overlooked in my explanations. )
 Solution : Revert those files to their original states before doing "git 
pull" so that git lets you apply updates you pulled... either with "git 
checkout " in terminal, or throught the git panel of vscode (or your 
personal/favorite way of reverting a modified file in a gitted project 
folder) ... or even just wipe and re-clone from scratch but thats a bit 
radical ;)

@Edward (on ubuntu) thats strange, so far running on ubuntu has been the 
way that worked 'out of the box'. ...and you're not  getting any errors in 
the debug console of the original vscode window? is "python3" the way to 
invoke it on your install of ubuntu? 

@matt : i'm not that familiar with the python world in general and all that 
anaconda stuff is chineese to me... sorry... i'll try to catch up !

*To all testing : I am so very gratefull!!!* For windows, it seems That I 
need to do a much better job at figuring out a reliable way to invoke the 
'leobridge.py' script of the leoInteg expansion by making sure that I get a 
hold of the path to launch with a valid python3 instance on the user's 
computer! (Because when the leoInteg expansion succeeds in finding valid 
python3 & leo6.0 it does indeed work) 

(I might also try to figure if I can check that leo '6.0' is installed and 
reachable before trying to start anything )

So I'm making myself a pot of coffee and will be working on this throughout 
the 3 day weekend to make it work reliably in at least those 2 OS's! I want 
to make sure anyone can 'easily' install and run this on linux&windows 
before adding "REAL" Leo Features ;)

My windows 10 software versions are :
vscode 1.39.1
node 10.16.3
python 3.7.4
leo 6.0 final (installed from git clone)
qt5 installed with "pip3 install PyQt5" 

standard 'vanilla' versions of everything... sensibly the same as under my 
working ubuntu setup i guess... 

I'll post updates as I go along and figure stuff out - Please do the same 
if you're so inclined!

A sincere thanks for your time and effort in helping me sorting this stuff 
out you guys!
--
Félix

On Saturday, October 12, 2019 at 9:09:49 AM UTC-4, Arjan wrote:
>
> Here's what I got. I did:
>
> 1. `cd leointeg`; `git checkout .`; `git pull`
> 2. npm install
> added 2 packages from 4 contributors and audited 313 packages in 1.678s
>
> Then F5 gives me the extension, but still without a Load File option in 
> the Leo tab. I get this error in the original VSCode window:
>
> stderr:   File "c:\Programs\leointeg/scripts/leobridge.py", line 26
>
> print(p_string, flush=True)
>  ^
> SyntaxError: invalid syntax
> leoBridge.js:106
>
> child process exited with code 1
> leoBridge.js:109
>
> Looks like it's using Python 2 (which was installed along with Node.js, I 
> didn't have it installed previously).
>
> After adding `C:\Programs\Anaconda3` to my (system) PATH variable before 
> C:\Python27, I get this:
>
> from python Error importing leoApp.py
> leoBridge.js:73
> stderr: Traceback (most recent call last):
>   File "c:\Programs\leointeg/scripts/leobridge.py", line 13, in 
> verbose=False) # True: print informational messages.
>   File "C:\Programs\Leo\leo\core\leoBridge.py", line 71, in controller
> verbose)
>   File "C:\Programs\Leo\leo\core\leoBridge.py", line 89, in __init__
> self.initLeo()
>   File "C:\Programs\Leo\leo\core\leoBridge.py", line 120, in initLeo
> assert(g.app)
> AssertionError
>
> leoBridge.js:106
> child process exited with code 1
>
> (And still no Load File in Leo's tab).
> Maybe with Anaconda we need to use a different way to properly invoke the 
> environment?
> I forgot the details of why, but for my cmd shell I use this:
>
> %windir%\System32\cmd.exe "/K" C:\Programs\Anaconda3\Scripts\activate.bat
>
> Arjan
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/13dc2c13-582b-4c0d-aa44-ae10a0f091c4%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Matt Wilkie

>
> PS C:\Users\Viktor\pyve\github\leo-devel> pip install --editable ./devel   
>  
> ERROR: File "setup.py" not found. Directory cannot be installed in 
> editable mode: C:\Users\Viktor\pyve\github\leo-devel\devel
>

1 dir too deep. The path needs to be to folder that contains setup.py.

-matt

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d1956174-4ebe-4b46-8e01-4eb707ccf7b9%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Matt Wilkie

>
> Direct ``pip install 
>> https://github.com/leo-editor/leo-editor/archive/devel.zip`` 
>>  does *not* 
>> work. For proper operation Leo relies on presence of certain files outside 
>> of the standard Python `site-packages` folder structure.
>>
>> @Edward: Has been a deliberate design decision of your side &  if yes, 
>> please explain why?
>>
>
> The question should read: Has this been a deliberate design decision on 
> your side &  if yes, please explain why?
>
 
No, not deliberate. It's a result from Python's package evolution and how 
pip works. 

Leo is both a Library and an Application and python packaging is designed 
mostly around the Library part. We could make it work and there are a 
couple good reasons aside from unwanted pip results to do it, but it is a 
major effort that would make every developer who uses Leo have to adjust 
their workflow and tooling. The source code tree structure would change at 
root, breaking many many scripts. Not gonna happen anytime soon. ;-) 

-matt

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/bc88a011-b570-4d3f-947c-77417a714c46%40googlegroups.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Matt Wilkie

>
> Maybe with Anaconda we need to use a different way to properly invoke the 
> environment?
> I forgot the details of why, but for my cmd shell I use this:
>
> %windir%\System32\cmd.exe "/K" C:\Programs\Anaconda3\Scripts\activate.bat
>

 
This will invoke conda's root or base environment but not the one created 
for project-x. Something more like this (being mindful to balance the 
quotes):

%windir%\system32\cmd.exe /K ""C:\Miniconda3\Scripts\activate.bat" 
"C:\Miniconda3\envs\leo-editor" && {any other cmd}"

(Responding just to the conda part. I've not done any of the other things 
in this thread.)

-matt

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/914d1eb0-3fb8-4694-bbaa-26ddfd3f7c0b%40googlegroups.com.


Re: For Leo 6.0 on Windows 10 - PyQt 4 or PyQt 5?

2019-10-12 Thread Matt Wilkie

>
> Also, I want to run leo headless: so I wonder if theres a way to set the 
>> 'leo id' without qt. (on first run leo asks for an id )
>>
>
>  Try running `leo-console` (or `python launchLeo.py --gui=console`).  
> [Later]: doesn't work. Loads npyscreen and then exits. This is probably a 
> bug.
>
 
Created issue for this at 
https://github.com/leo-editor/leo-editor/issues/1385

Work around:

set HOME=%USERPROFILE%
mkdir %userprofile%\.leo
echo "My ID" > %userprofile%\.leo\.leoID.txt
leo-console

Note: skip the `set HOME` line if you already have it defined.

-matt

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/2bc38fe8-f5f4-42cf-91e1-2ae0d62a9154%40googlegroups.com.


Re: @button for displaying all parents of a clone to log pane

2019-10-12 Thread SegundoBob


On Saturday, October 12, 2019 at 6:53:41 AM UTC-7, btheado wrote:
>
>
> But vnode2allPositions is used in the leo-editor by the method 
> c.cloneFindParents.
>

I missed the restructuring of the Leo-Editor core code that created the 
separate commands directory.  My  copy of LeoPyRef.leo was out of date. 


>
>  So probably your quibble with vnode2allPositions is that it doesn't do 
> what you expect it to do based on the name?
>
>  
Exactly. 

Have you seen the with_index and with_count parameters for get_UNL?
>

Yes, I' m aware of those options. get_UNL() does not have a "target 
position to root" option. 

I have no more interest in this topic and nothing to contribute to it.

Thanks for your help.

SegundoBob

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6223f948-0b7d-4d99-af41-f2bba05f1d19%40googlegroups.com.


Re: For Leo 6.0 on Windows 10 - PyQt 4 or PyQt 5?

2019-10-12 Thread Matt Wilkie

>
> I am currently trying to install leo on windows...   (I wish the 
> documentation would be a lot more detailled and precise for this)
>

Yeah, I hear you.

After installing python3 with the official installer, It took me a lot of 
> googling to figure out that I needed to put python3's path and its Scripts 
> folder path in windows 'PATH' env. variable manualy in order to be able to 
> run "pip3 install PyQt5".  
>

Hmm. I haven't tried the official installer in awhile; it used to do that 
automatically. Thanks for the heads up.
 

> the fact that Qt5 is not easily installable via a simple .exe download is 
> 'scary' for (non-python) people like me :)
>

Agreed! I've spent a lot of time trying figuring out how to smooth that 
part of the process. Not that it's any consolation to you now, but it used 
to be even more difficult (you couldn't use pip). ;-)

Also, I want to run leo headless: so I wonder if theres a way to set the 
> 'leo id' without qt. (on first run leo asks for an id )
>

 Try running `leo-console` (or `python launchLeo.py --gui=console`).  
[Later]: doesn't work. Loads npyscreen and then exits. This is probably a 
bug.

-matt

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c3221698-2a28-41f3-9322-6f7f4d143307%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Matt,

Am Samstag, 12. Oktober 2019 17:10:17 UTC+2 schrieb Viktor Ransmayr:
>
> Am Sa., 12. Okt. 2019 um 15:43 Uhr schrieb Viktor Ransmayr <
> viktor.ransm...@gmail.com>:
>
>> Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:
>>>
>>> Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie >> >:
>>>
 I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains 
 generic install-from-source instructions for all platforms. It might need 
 some format tuning and perhaps other edting. I think it could replace or 
 be 
 merged with a couple of the following nodes. Or at least something to 
 improve the flow and reduce redundancy. Have at 'er. ;-)

>>>
>>> @Matt: Thanks for this. - I'll provide my feedback in the context of my 
>>> attempt to install a version of the Leo Developement Branch in a new Python 
>>> Virtual Environment (PyVE) without the need to use git as a Leo Newbie / 
>>> Non Leo Developer ...
>>>
>>
>> Here's an **intermediate** status report, which show very nicely how 
>> difficult it is to create correct & precise documentation.
>>
>> TL;DR : I ran into unforseen problems, since I don't use theWindows 
>> Command Prompt but use PowerShell as my default console in Windows.
>>
>
> Here's a follow-up status report, which shows the limited progress I made:
>
>1. Use 'wget' alias w/i PS. - OK. - See "Log-004"
>2. Use 'extract-archive' w/i PS. - OK. - See "Log-005"
>3. Use 'pip' w/i PS. - Not OK. - See "Log-006"
>
> Do you have an explanation, why pip fails in this context?
>

Please ignore my question! - The problem was in front of the terminal ;-) 

With kind regards,

Viktor

PS: I'll report back, when I have the complete process properly documented 
...

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d6ecbb26-35df-4ac1-8bd2-1d4bc837b3f2%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Matt,

Am Sa., 12. Okt. 2019 um 15:43 Uhr schrieb Viktor Ransmayr <
viktor.ransm...@gmail.com>:

> Hello Matt,
>
> Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:
>>
>> Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie > >:
>>
>>> I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains
>>> generic install-from-source instructions for all platforms. It might need
>>> some format tuning and perhaps other edting. I think it could replace or be
>>> merged with a couple of the following nodes. Or at least something to
>>> improve the flow and reduce redundancy. Have at 'er. ;-)
>>>
>>
>> @Matt: Thanks for this. - I'll provide my feedback in the context of my
>> attempt to install a version of the Leo Developement Branch in a new Python
>> Virtual Environment (PyVE) without the need to use git as a Leo Newbie /
>> Non Leo Developer ...
>>
>
> Here's an **intermediate** status report, which show very nicely how
> difficult it is to create correct & precise documentation.
>
> TL;DR : I ran into unforseen problems, since I don't use theWindows
> Command Prompt but use PowerShell as my default console in Windows.
>

Here's a follow-up status report, which shows the limited progress I made:

   1. Use 'wget' alias w/i PS. - OK. - See "Log-004"
   2. Use 'extract-archive' w/i PS. - OK. - See "Log-005"
   3. Use 'pip' w/i PS. - Not OK. - See "Log-006"

Do you have an explanation, why pip fails in this context?

For the moment I'll stop here - and - restart my activities concerning the
usage of a 'usable' dark theme in a/ my Windows 10 environment.

With kind regards,

Viktor

###



PS C:\Users\Viktor\pyve\github\leo-devel> wget -OutFile ./devel.zip
https://github.com/leo-editor/leo-editor/archive/devel.zip

 PS C:\Users\Viktor\pyve\github\leo-devel> ls


Verzeichnis: C:\Users\Viktor\pyve\github\leo-devel


ModeLastWriteTime Length Name
- -- 
d-   12.10.2019 14:30Include
d-   12.10.2019 14:30Lib
d-   12.10.2019 14:30Scripts
-a   12.10.2019 16:41   11727380 devel.zip
-a   12.10.2019 14:30 85 pyvenv.cfg


PS C:\Users\Viktor\pyve\github\leo-devel>





PS C:\Users\Viktor\pyve\github\leo-devel> expand-archive ./devel.zip

 PS
C:\Users\Viktor\pyve\github\leo-devel> ls



Verzeichnis: C:\Users\Viktor\pyve\github\leo-devel


ModeLastWriteTime Length Name
- -- 
d-   12.10.2019 16:48devel
d-   12.10.2019 14:30Include
d-   12.10.2019 14:30Lib
d-   12.10.2019 14:30Scripts
-a   12.10.2019 16:41   11727380 devel.zip
-a   12.10.2019 14:30 85 pyvenv.cfg


PS C:\Users\Viktor\pyve\github\leo-devel>





PS C:\Users\Viktor\pyve\github\leo-devel> pip install --editable ./devel

ERROR: File "setup.py" not found. Directory cannot be installed in editable
mode: C:\Users\Viktor\pyve\github\leo-devel\devel
PS C:\Users\Viktor\pyve\github\leo-devel>



-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAAeSrG%2BMbG0N6E4p_kJTu0VkifCViTf4jWumY4rW4OEq34%2BfRQ%40mail.gmail.com.


Re: @button for displaying all parents of a clone to log pane

2019-10-12 Thread Brian Theado
SegundoBob,

> You give a correct implementation of vnode2allPositions().
[...]
> The implementation of vnode2allPositions() in leoCommand.py is seriously
flawed
[...]
> But vnode2allPositions() is not used by Leo-Editor core

But vnode2allPositions is used in the leo-editor by the method
c.cloneFindParents. The vnode2allPositions method has this in its doc
string:

"Not really all, just all for each of v's distinct immediate parents."


I'm guessing it does exactly what Edward wants it to because he uses the
clone-find-x commands all the time. The clone-find-all-parents command
helps you quickly see the context of other occurences of the clone. But
sometimes the volume of other clones is very high due to distant
ancestors themselves having clone instances. Seeing so many repeated
instances of similar tree structure often becomes too much noise.

 So probably your quibble with vnode2allPositions is that it doesn't do
what you expect it to do based on the name?

For my initial 'show-clones' command (now called 'show-clone-parents') I
wanted the same "reduced noise" approach as clone-find-all-parents and so I
re-used the vnode2allPositions method. Then based on your feedback, I wrote
the show-clone-ancestors which shows all the paths to the clone. Two
different use cases and I thought the latter would fit your use case. Does
it?

> Here is a function that guarantees positions Y and Z display as different
UNL's
> by appending/prepending the child index for Y or Z (child index in
brackets) to
> the headline of X
[...]

Have you seen the with_index and with_count parameters for get_UNL?

def get_UNL(self, with_file=True, with_proto=False, with_index=True,
with_count=False):
"""
with_file=True - include path to Leo file
with_proto=False - include 'file://'
with_index - include ',x' at end where x is child index in parent
with_count - include ',x,y' at end where y zero based count of same
headlines
"""


I didn't take a close look at your code, but is it any different than just
using those options? I didn't include those options in my
show-clone-ancestors, but that is easy to change. I figured the important
part is that if you click on the same-looking links, it will still take you
to the distinct instances of that position

Brian

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAO5X8Cz1WCD_jc5AHHL7un5ZSurW%2BnUEhjSyMbbDDv8vPuk%2BoQ%40mail.gmail.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Matt,

Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:
>
> Hello Matt, hello Edward,
>
> Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie :
>
>> I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains 
>> generic install-from-source instructions for all platforms. It might need 
>> some format tuning and perhaps other edting. I think it could replace or be 
>> merged with a couple of the following nodes. Or at least something to 
>> improve the flow and reduce redundancy. Have at 'er. ;-)
>>
>
> @Matt: Thanks for this. - I'll provide my feedback in the context of my 
> attempt to install a version of the Leo Developement Branch in a new Python 
> Virtual Environment (PyVE) without the need to use git as a Leo Newbie / 
> Non Leo Developer ...
>

Here's an **intermediate** status report, which show very nicely how 
difficult it is to create correct & precise documentation.

TL;DR : I ran into unforseen problems, since I don't use theWindows Command 
Prompt but use PowerShell as my default console in Windows.

Longer version of the story:

I tried to follow your instructions as closely as possible:

::

Assumes **Python 3.6+** is installed and in PATH.

Installing from source code into a new environment must be done in 
discrete steps: **download**, **unpack archive**, and **install as 
editable** mode.

Example::

wget https://github.com/leo-editor/leo-editor/archive/devel.zip
7z x devel.zip -o C:\apps
pip install --editable C:\apps\leo-editor-devel

Here are the steps that I performed:

1) Create & activate a new PyVE. - OK. - See "Log-001"
2) Download & install wget. - Not OK. - See "Log-002"
3) It looks like you don't even have to install 'wget' if you are a PS 
user. - Partially OK. - See "Log-003"

I'll only publish Log-002 & Log-003 here, since they contain the 
interesting content ...

Now I'll continue to try to get a version of the Leo Developement Branch in 
a new Python Virtual Environment (PyVE) working without the need to use git 
as a Leo User ...

With kind regards,

Viktor

###



* Verify availability of 'wget' in the PyVE - No OK. - See below:

::

Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Lernen Sie das neue plattformübergreifende PowerShell kennen – 
https://aka.ms/pscore6

PS C:\Users\Viktor> cd pyve/github/leo-devel

PS C:\Users\Viktor\pyve\github\leo-devel> wget --version
wget : Der Remotename konnte nicht aufgelöst werden: '--version'
In Zeile:1 Zeichen:1
+ wget --version
+ ~~
+ CategoryInfo  : InvalidOperation: 
(System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : 
WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

PS C:\Users\Viktor\pyve\github\leo-devel>





PS C:\Users\Viktor\pyve\github\leo-devel> wget

Cmdlet Invoke-WebRequest an der Befehlspipelineposition 1
Geben Sie Werte für die folgenden Parameter an:
Uri: https://github.com/leo-editor/leo-editor/archive/devel.zip


StatusCode: 200
StatusDescription : OK
Content   : {80, 75, 3, 4...}
RawContent: HTTP/1.1 200 OK
Transfer-Encoding: chunked
Access-Control-Allow-Origin: 
https://render.githubusercontent.com
Content-Security-Policy: default-src 'none'; style-src 
'unsafe-inline'; sandbox
Strict-...
Headers   : {[Transfer-Encoding, chunked], 
[Access-Control-Allow-Origin,
https://render.githubusercontent.com], 
[Content-Security-Policy, default-src 'none'; style-src
'unsafe-inline'; sandbox], [Strict-Transport-Security, 
max-age=31536000]...}
RawContentLength  : 11727380



PS C:\Users\Viktor\pyve\github\leo-devel> 
ls


Verzeichnis: C:\Users\Viktor\pyve\github\leo-devel


ModeLastWriteTime Length Name
- -- 
d-   12.10.2019 14:30Include
d-   12.10.2019 14:30Lib
d-   12.10.2019 14:30Scripts
-a   12.10.2019 14:30 85 pyvenv.cfg


PS C:\Users\Viktor\pyve\github\leo-devel>  

###

It is unclear where to 'devel.zip' got copied to? - Investigate ...



-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/d0b74ff5-8e5b-4fd1-ab2f-960f677d54c6%40googlegroups.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Arjan
Here's what I got. I did:

1. `cd leointeg`; `git checkout .`; `git pull`
2. npm install
added 2 packages from 4 contributors and audited 313 packages in 1.678s

Then F5 gives me the extension, but still without a Load File option in the 
Leo tab. I get this error in the original VSCode window:

stderr:   File "c:\Programs\leointeg/scripts/leobridge.py", line 26

print(p_string, flush=True)
 ^
SyntaxError: invalid syntax
leoBridge.js:106

child process exited with code 1
leoBridge.js:109

Looks like it's using Python 2 (which was installed along with Node.js, I 
didn't have it installed previously).

After adding `C:\Programs\Anaconda3` to my (system) PATH variable before 
C:\Python27, I get this:

from python Error importing leoApp.py
leoBridge.js:73
stderr: Traceback (most recent call last):
  File "c:\Programs\leointeg/scripts/leobridge.py", line 13, in 
verbose=False) # True: print informational messages.
  File "C:\Programs\Leo\leo\core\leoBridge.py", line 71, in controller
verbose)
  File "C:\Programs\Leo\leo\core\leoBridge.py", line 89, in __init__
self.initLeo()
  File "C:\Programs\Leo\leo\core\leoBridge.py", line 120, in initLeo
assert(g.app)
AssertionError

leoBridge.js:106
child process exited with code 1

(And still no Load File in Leo's tab).
Maybe with Anaconda we need to use a different way to properly invoke the 
environment?
I forgot the details of why, but for my cmd shell I use this:

%windir%\System32\cmd.exe "/K" C:\Programs\Anaconda3\Scripts\activate.bat

Arjan

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/da52958d-b446-4385-84ed-840132c16d6d%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Edward,

Am Samstag, 12. Oktober 2019 14:10:24 UTC+2 schrieb Viktor Ransmayr:

>
> ...
>
> Direct ``pip install 
> https://github.com/leo-editor/leo-editor/archive/devel.zip`` 
>  does *not* 
> work. For proper operation Leo relies on presence of certain files outside 
> of the standard Python `site-packages` folder structure.
>
> @Edward: Has been a deliberate design decision of your side &  if yes, 
> please explain why?
>

The question should read: Has this been a deliberate design decision of 
your side &  if yes, please explain why?

Viktor

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/30c5000c-48bf-4ea5-be78-a9e2fa061e45%40googlegroups.com.


Re: docs: Installing Leo from sources (all platforms)

2019-10-12 Thread Viktor Ransmayr
Hello Matt, hello Edward,

Am Do., 10. Okt. 2019 um 10:30 Uhr schrieb Matt Wilkie :

> I just pushed 51ca4f21b956beced0951de02a399e56a070ca01 which contains
> generic install-from-source instructions for all platforms. It might need
> some format tuning and perhaps other edting. I think it could replace or be
> merged with a couple of the following nodes. Or at least something to
> improve the flow and reduce redundancy. Have at 'er. ;-)
>

@Matt: Thanks for this. - I'll provide my feedback in the context of my
attempt to install a version of the Leo Developement Branch in a new Python
Virtual Environment (PyVE) without the need to use git as a Leo Newbie /
Non Leo Developer ...

Direct ``pip install
> https://github.com/leo-editor/leo-editor/archive/devel.zip``
>  does *not*
> work. For proper operation Leo relies on presence of certain files outside
> of the standard Python `site-packages` folder structure.
>

@Edward: Has been a deliberate design decision of your side &  if yes,
please explain why?

With kind regards,

Viktor

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAAeSrG%2BcNobwghdFBF%3DAmE4jrcrJ3CJ72rtVM3i3boKYb06CHA%40mail.gmail.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Edward K. Ream
On Saturday, October 12, 2019 at 6:23:55 AM UTC-5, Edward K. Ream wrote:

>
> tldr; Pull, run 'npm install' and you're good to go!
>>
>
I did that on Ubuntu.  Within VS code I selected the leointeg folder and 
did F5.

I see the LEOINTEG and OUTLINE panes, but I see no folder in the OUTLINE 
pane.

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 email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5c14b11a-571c-4080-b17a-e3a77f602c78%40googlegroups.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Edward K. Ream
On Fri, Oct 11, 2019 at 11:32 PM Félix  wrote:

> Support for Windows is now fixed!
>

Thanks.

tldr; Pull, run 'npm install' and you're good to go!
>

Did that, with no errors.

git status shows:

 modified:   package-lock.json
 modified:   package.json

When I open VS code, the Source Code pane shows that the above two files
have changed, with a message "Ctrl+Enter to commit on master".  Should I do
that?

I see all the sources for leointeg itself, but no files. I'm sure this
would be confusing to new users of leointeg. Earlier you said,

   Once 'activated', an 'Open Leo File' folder icon will be available
   on the 'LEO: OUTLINE' bar upon hovering.

I see the OUTLINE bar, but I don't see any way to load a Leo file.

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 email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1MWCG%3DewXBbXJCn2m%2BtxJ_DsqMC1jznUeeD5XxUqB-%2Bw%40mail.gmail.com.


Re: How do you install leointeg into VS Code?

2019-10-12 Thread Edward K. Ream
On Fri, Oct 11, 2019 at 5:28 PM Félix  wrote:

haha we're both stuck trying to install and run each other's product!
>
> I installed python 3 (latest from python.org) and leo from sources on
> windows, cd into leo's dir and this is what I get :
>
> D:\prog\leo-editor>py launchLeo.py
> Traceback (most recent call last):
>   File "launchLeo.py", line 7, in 
> import leo.core.runLeo
>   File "D:\prog\leo-editor\leo\core\runLeo.py", line 25, in 
> import leo.core.leoGlobals as leoGlobals
>   File "D:\prog\leo-editor\leo\core\leoGlobals.py", line 68, in 
> import urllib.parse as urlparse
> ImportError: No module named parse
>

Hmm.  urllib.parse is part of Python's standard library.  This would be a
major bug in the Python 3.7 distro.

This looks like an installation problem on your end.  In a console, type
`where python`.  It should point at python.exe in the 3.7 distro, but I'm
guessing it doesn't.

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 email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3a96%3DacaDaW0OX4f6im7ct46hiy7xDM-vTrE6F48%2BgBA%40mail.gmail.com.