Re: TravisCI complains about leoflexx.py

2018-12-11 Thread Matt Wilkie
 
>
> I think skeleton branch just needs to sync setup.py from devel branch. 
>> Travis is happy with that branch.
>>
>
> Thanks.  That did the trick. 
>

You're welcome, and: Yay! There is now one thing in my day that I could 
solve without research ;-)

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: TravisCI complains about leoflexx.py

2018-12-11 Thread Edward K. Ream
On Tue, Dec 11, 2018 at 4:11 PM Matt Wilkie  wrote:

>
> Matt, I think this is probably expected now, but it could cause problems
>> later.
>>
>> Is there any way to tell TravisCI to completely ignore leoflexx.py?
>>
>
> I think skeleton branch just needs to sync setup.py from devel branch.
> Travis is happy with that branch.
>

Thanks.  That did the trick.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: For Matt and other devs: leo/dist/git_install.py installs Leo using *only* git

2018-12-11 Thread Edward K. Ream
On Tue, Dec 11, 2018 at 4:08 PM Matt Wilkie  wrote:

> Marked for study.
> Thank you Edward, Speed. :)
>
> My first question is why? Meaning: I don't understand the problems it's
> solving.
>
...

> At first reading I thought it was for disconnected environments because of
> the zip archives, but there's also talk of pulling updates from Github so
> that doesn't quite fit. Python and Pip themselves are headless, so it's not
> getting around `pip install leo` and it's still using pip anyway.  Ohhh, is
> it because default `pip install leo` demands PyQt and other unwanted
> dependencies?
>

I think so. I took some notes a week ago or so.  Here they are:

QQQ
pip install leo from a downloaded .zip file.

- Download .zip file.
- Weird git init from the .zip file.
- Weirder git pull.
- pip install with exactly the right command-line switches.
  Works for all required packages except tornado.
  tornado works, but can't do a git pull.
QQQ

That's what I have.   HTH.  I'll ask Speed.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: For Matt and other devs: leo/dist/git_install.py installs Leo using *only* git

2018-12-11 Thread Terry Brown
On Tue, 11 Dec 2018 14:08:14 -0800 (PST)
Matt Wilkie  wrote:

> Marked for study.
> Thank you Edward, Speed. :)
> 
> My first question is why? Meaning: I don't understand the problems
> it's solving. At first reading I thought it was for disconnected
> environments because of the zip archives, but there's also talk of
> pulling updates from Github so that doesn't quite fit. Python and Pip
> themselves are headless, so it's not getting around `pip install leo`
> and it's still using pip anyway.  Ohhh, is it because default `pip
> install leo` demands PyQt and other unwanted dependencies?

I tested

git clone --depth 1 https://github.com/leo-editor/leo-editor.git

in the docker image python:latest which conveniently contains bash and
git, and it seemed sufficient to create a leoBridge controller:
http://leoeditor.com/leoBridge.html

You just need to do `export USER=aUser` because USER is otherwise unset
and of course you can't ask for it graphically.

So headless Leo seems straight forward?

Cheers -Terry
 
> 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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: TravisCI complains about leoflexx.py

2018-12-11 Thread Matt Wilkie


> Matt, I think this is probably expected now, but it could cause problems 
> later.
>
> Is there any way to tell TravisCI to completely ignore leoflexx.py?
>
 
I think skeleton branch just needs to sync setup.py from devel branch. 
Travis is happy with that branch.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: For Matt and other devs: leo/dist/git_install.py installs Leo using *only* git

2018-12-11 Thread Matt Wilkie
Marked for study.
Thank you Edward, Speed. :)

My first question is why? Meaning: I don't understand the problems it's 
solving. At first reading I thought it was for disconnected environments 
because of the zip archives, but there's also talk of pulling updates from 
Github so that doesn't quite fit. Python and Pip themselves are headless, 
so it's not getting around `pip install leo` and it's still using pip 
anyway.  Ohhh, is it because default `pip install leo` demands PyQt and 
other unwanted dependencies?

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How important is LeoWapp to you?

2018-12-11 Thread Matt Wilkie

>
> Err, I don't think Edward is suggesting taking away the option of running 
>> Leo 'fully standalone', if that is your use case. It is more for extending 
>> it when the other configurations make sense.
>>
>
> No, I never thought of that. This question is engaging me because I'm 
> working on an application of my own where I have almost the same decisions 
> to make. 
>

https://www.inrupt.com/blog/one-small-step-for-the-web -- *"This is why I 
have, over recent years, been working with a few people at MIT and 
elsewhere to develop Solid , an open-source 
project to restore the power and agency of individuals on the web.Solid 
changes the current model where users have to hand over personal data to 
digital giants in exchange for perceived value. ... *
*a platform, built using the existing web. It gives every user a choice 
about where data is stored, which specific people and groups can access 
select elements, and which apps you use. It allows you, your family and 
colleagues, to link and share data with anyone. It allows people to look at 
the same data with different apps at the same time." -- Tim Berners-Lee*

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Bits branch is ready for testing. Will be merged tomorrow

2018-12-11 Thread Edward K. Ream
The bits branch contains work for #1023 
: lingering marked 
and expanded "bits".

The present work retires the @bool put-expansion-bits-in-leo-files setting, 
and removes it from all .leo files.  Let me know if I have missed any.

The code changes, while straightforward, are to Leo's crucial read/write 
logic, and so much be thoroughly tested.

A similar setting, @bool opml_write_leo_details, involves only the leoOPML 
plugin, but imo there is good reason to leave this plugin alone.

Please test and report any problems immediately.  Unless I hear of problems 
I'll merge bits into devel tomorrow.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


TravisCI complains about leoflexx.py

2018-12-11 Thread Edward K. Ream
Matt, I think this is probably expected now, but it could cause problems 
later.

Is there any way to tell TravisCI to completely ignore leoflexx.py?

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


For Matt and other devs: leo/dist/git_install.py installs Leo using *only* git

2018-12-11 Thread Edward K. Ream
My brother Speed wrote this script.  I edited it lightly so pyflakes and 
pylint are happy.  leoDist.leo contains the @file node.

This is a very cool script. As I understand it, it installs Leo in a 
"headless" virtual environment that contains only git itself.

In essence, it adapts git for an installation purpose.  According to Speed, 
it's quite tricky. Who am I to disagree?

Matt, I think this would be worth serious study.  It may be useful for you.

Feel free to ask questions.  I'll pass them along to Speed.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Having difficulty with WIndows 10

2018-12-11 Thread rengel
I case somebody is interested:
In PyCharm, I created a new project and imported the Leo version that 
contains leoflexx. After that I just could start the program with the 
inbuilt 'Run' function. (The only thing I changed were the background 
colors.):

[image: leoflexx.png]



-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How important is LeoWapp to you?

2018-12-11 Thread rengel

>
>
> Err, I don't think Edward is suggesting taking away the option of running 
> Leo 'fully standalone', if that is your use case. It is more for extending 
> it when the other configurations make sense.
>

No, I never thought of that. This question is engaging me because I'm 
working on an application of my own where I have almost the same decisions 
to make. 

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Having difficulty with WIndows 10

2018-12-11 Thread cjdiestelkamp
This worked!!! Thank you!

On Monday, December 10, 2018 at 2:51:53 PM UTC-6, Matt Wilkie wrote:
>
>
> The command prompt needs to be run in Administration mode:
>
>
> https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/
>
> https://superuser.com/questions/968214/open-cmd-as-admin-with-windowsr-shortcut
>
>
> On Friday, 7 December 2018 11:00:03 UTC-8, cjdies...@gmail.com wrote:
>>
>> Thanks for your suggestion. The pip install worked, but the file 
>> association did not:
>>
>> C:\Users\dieche>assoc .leo=LeoFile
>> Access is denied.
>> Error occurred while processing: .leo.
>>
>> Do you have any other ideas?
>>
>>
>>
>> On Monday, December 3, 2018 at 6:32:08 PM UTC-6, Matt Wilkie wrote:
>>>
>>> Documenting this is on my todo list, thanks for the nudge. ;-)
>>>
>>> This should do it:
>>>
>>>- open an Anaconda shell set up for Leo
>>>
>>>C:\> pip install --editable c:\path\to\leo-editor
>>>
>>>- open an Administrative CMD shell:
>>>
>>>C:\> assoc .leo=LeoFile
>>>C:\> ftype 
>>>LeoFile="c:\tools\miniconda3\envs\leo-dev\Scripts\leo.exe" "%1" %*
>>>
>>>
>>> Edit path to suit local circumstances.
>>>
>>> Matt
>>>
>>>
>>>
>>>
>>>
>>> On Friday, 30 November 2018 09:34:46 UTC-8, Phil wrote:

 I am trying (almost successfully) to get Leo installed on a colleague's 
 Windows 10 machine. She has installed Anaconda and is running a Python 3 
 environment. She has pulled the master branch of Leo into 
 c:/Users/userid/Tools/leo-editor, and she can run an Anaconda prompt in 
 that directory and run Leo "manually" just fine. But we have utterly 
 failed 
 getting file associations to work so that she can just double click on a 
 Leo file to open it.

 Any suggestions, either to make the appropriate file associations, or 
 for some reasonable workaround?

 Thanks!
 Phil



-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: How important is LeoWapp to you?

2018-12-11 Thread jkn


On Tuesday, December 11, 2018 at 6:58:13 AM UTC, rengel wrote:
>
> On Monday, December 10, 2018 at 10:02:46 PM UTC+1, Matt Wilkie wrote:
>>
>> I'm picking out a single element to comment on, just because that's 
>> something I have a thought on right now. The rest of the sentiments are 
>> worth pondering too, especially the point about the difference between and 
>> user data and application.
>>
>> The ability to run Leo in the browser. Obviously for this I need a 
>>> browser, but I don't need any local Leo code.
>>>
>>
>> There's a further distinction here: Not needing Qt. Browsers are more 
>> universally available. Qt is problematic to source and install at times.
>>
>>
> Agreed! But that's not my main concern. Even if Leo (or any other app) 
> runs in the browser you need some GUI framework (if you don't want to 
> hand-code all the JavaScript, HTML and CSS yourself).
> There are (at least) three main issues:
> - loading the software locally vs. remotely
> - running the software standalone or in a browser,
> - storing and accessing the data locally or remotely,
> giving eight possible permutations, each having its own advantages and 
> disadvantages. Before any serious commitments, each should be evaluated in 
> some detail.
> IMO, running an app in the browser only makes sense, when one wants to 
> serve the software across the web with every session. This implies that the 
> Internet will be available - always and everywhere.
> Given the political climate today, for important company or personal data 
> I wouldn't bet on the guaranteed availability of all cloud services, 
> software, or libraries across the Internet. Today People and Companies are 
> cut off from important services (Facebook, Twitter, PayPal, credit card 
> companies, i.e. YouTube: 'This video is not available in your country.'). 
> What happens, if your Leo data happen to contain some terms that are 
> 'politically incorrect'? 
> Only software and data that you can still use when all connections are 
> cut, are truly yours. Of course, if you want to serve your data to people 
> around the world, you need the Internet. But was Leo designed with this 
> purpose in mind (the 'P' in PIM)?
> But I digress.
> Again, more succinctly:
> Why should I run a local browser-based version of Leo to access local data 
> (using the file system or a local or in-house server), if a proven local 
> standalone version is available?
>
>
Err, I don't think Edward is suggesting taking away the option of running 
Leo 'fully standalone', if that is your use case. It is more for extending 
it when the other configurations make sense.

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.