Re: Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-19 Thread Edward K. Ream
On Monday, February 19, 2018 at 11:42:11 AM UTC-6, Edward K. Ream wrote:

I did all the installs in separate consoles. These consoles tell me 
> everything except the order in which they were installed ;-) Hmm, maybe I 
> should add a time stamp to the console prompts...
>

There's too much cruft in the approach.  Imo, it's better just to keep an 
accurate log of the commands I issued.

I ended up reinstalling the leovue folder four or five times. It would just 
add to the confusion if I kept lots of consoles around.

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: Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-19 Thread Edward K. Ream
On Monday, February 19, 2018 at 11:42:11 AM UTC-6, Edward K. Ream wrote:

> See #735: Installing and running LeoVue 


Hurray! LeoVue now works properly for me on Ubuntu with Mozilla.  #735 
presents a summary of what I did.

There are some fine points in #735.  When in doubt, I deleted the leovue 
folder, downloaded again with git clone, and reinstalled.

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: Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-19 Thread Edward K. Ream

On Monday, February 19, 2018 at 11:55:28 AM UTC-6, Kent Tenney wrote:

Ubuntu main is too old, use the node repo
> This is what I have:
> curl -sL https://deb.nodesource.com/setup_6.x | bash -
>

It turns out that the following is required (gnashes teeth):

curl -sL https://deb.nodesource.com/setup_6.x | *sudo* bash -

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: Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-19 Thread Edward K. Ream
On Monday, February 19, 2018 at 11:55:28 AM UTC-6, Kent Tenney wrote:

Ubuntu main is too old, use the node repo
> This is what I have:
> curl -sL https://deb.nodesource.com/setup_6.x | bash -
>
> which is a shortcut to add the node repo
>
> after that 
> apt-get install nodejs
> installs current version
>

Thanks Jacob. Thanks Kent. I'll try again later today...

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: Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-19 Thread Kent Tenney
Ubuntu main is too old, use the node repo
This is what I have:
curl -sL https://deb.nodesource.com/setup_6.x | bash -

which is a shortcut to add the node repo

after that
apt-get install nodejs
installs current version

On Mon, Feb 19, 2018 at 11:47 AM, Edward K. Ream 
wrote:

> On Monday, February 19, 2018 at 11:42:11 AM UTC-6, Edward K. Ream wrote:
>
> It's troubling that the Ubuntu versions are so much lower than
> corresponding Windows versions.
>
> 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.
>

-- 
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: Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-19 Thread Jacob MacDonald
Yes, I would suspect that ancient Node version first and foremost. The
NodeJS site has a repository you can add for more up to date versions of
their software.

On Mon, Feb 19, 2018, 11:47 Edward K. Ream  wrote:

> On Monday, February 19, 2018 at 11:42:11 AM UTC-6, Edward K. Ream wrote:
>
> It's troubling that the Ubuntu versions are so much lower than
> corresponding Windows versions.
>
> 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.
>

-- 
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: Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-19 Thread Edward K. Ream
On Monday, February 19, 2018 at 11:42:11 AM UTC-6, Edward K. Ream wrote:

It's troubling that the Ubuntu versions are so much lower than 
corresponding Windows versions. 

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.


Joe, building LeoVue fails for me on Windows and Ubuntu

2018-02-19 Thread Edward K. Ream


*Windows*See #735: Installing and running LeoVue 


*Ubuntu*

I have, at one time or another this morning, done the following:

Reinstalled node.js

sudo apt install default-jdk

npm install -g dev-server

sudo npm install -g gyp
  # Seems to installed gyp@0.5.0 ???
 
npm install appears to work, with warnings.

npm run dev fails as follows:

npm ERR! Linux 4.4.0-112-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! leo-vue@1.6.4 dev: `node build/dev-server.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the leo-vue@1.6.4 dev script 'node build/dev-server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the leo-vue package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build/dev-server.js

Joe (or anyone else), any help you could give would be appreciated.

I should be able to answer most questions about what I have just done 
because I did all the installs in separate consoles.

These consoles tell me everything except the order in which they were 
installed ;-) Hmm, maybe I should add a time stamp to the console prompts...

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: Error starting Leo: 'NoneType' object has no attribute 'QObject'

2018-02-19 Thread Edward K. Ream
On Thu, Feb 15, 2018 at 7:32 PM, John Clark 
wrote:

@Edward K Ream: I might suggest that (at least in the near term) some
> popular linux distros (including Debian) are shipping systems that contain
> both python v2 and python v3 and therefore this issue is probably going to
> crop up often for linux users. Subsequently, it might be worth noting this
> issue in the leo documentation dealing with installation?
>

​That section is already too long and difficult.  Perhaps Matt can come up
with an automatic solution.

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: effective collaborate with .leo for doc.?[via]Advices for Leo documentation in Chinese translated version?

2018-02-19 Thread Edward K. Ream
On Mon, Feb 19, 2018 at 9:33 AM, Zoom.Quiet  wrote:

>
> after test, i confirm:
>
> - change @rst -> @clean, will lost so many rST need support by Leo
>


> - and @rst really can not auto merge changed from out files
>

​Yes, this is a problem. I don't know of any simple solution.

I would consider writing scripts that would read/write parts of LeoDocs.leo​

​to some external file​.  It would even be possible to execute these
scripts automatically using, say, Leo's 'save2' and 'open2' events.  See this
page .

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: Scripting leo: Programmatic way to reference the vnode containing the script that is being executed?

2018-02-19 Thread John Clark


On Tuesday, February 20, 2018 at 12:31:38 AM UTC+11, Edward K. Ream wrote:
>
>
> I have just created #736: Predefine script_p and script_gnx values in Leo 
> scripts , with a 5.8 
> milestone.
>
> You could create your own execute-script command if you need this feature 
> now.
>
> Edward
>
>
>
Wonderful! I do think this would be a very useful addition, not just for my 
immediate use case but for others as well.

Thanks again

John
 

-- 
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: effective collaborate with .leo for doc.?[via]Advices for Leo documentation in Chinese translated version?

2018-02-19 Thread Zoom.Quiet
On Sat, Feb 17, 2018 at 11:14 PM, Zoom.Quiet  wrote:
> 2 years ago: Re: How to collaborate using Leo
> https://groups.google.com/d/msg/leo-editor/Mr1cAfi8BLs/Q2PlDxsrBwAJ
> discuss about  Leonard(Leo user) and Nancy(not Leo user) how to work together,
> the result is :
> @clean be upgraded, and support perfect auto merge from Nancy fixed
> resource files.
>
> but for the doc. translate project:
> work in doc/LeoDocs.leo is the necessarily, because:
>
> 0: the target for translate doc. of Leo , just for Chinese Nancy start love 
> Leo
> 1: so contributor base LeoDocs.leo is the only right start
>
> BUT collaborate in github, there is always 2 ways:
> 0: like svn, usage github as one kinds of collaborate Repo., member
> with Repo. ACL;
> 1: base DVCS , usage Fork->Pull-Request flow;
>
> in the doc. translate project, the contributor in different level,
> will produce different result:
> 0: member of Repo. with write ACL, can push LeoDocs.leo, and usage
> Rst3 export new translate results;
> 1: contributor from fork Repo., if P-R  LeoDocs.leo, the member can
> not decide accept or not base diff from .leo, because mix so many XML
> info.
>
> SO my question is :
> how to make different roles in doc. translate project all in effective
> edit action?
>
> in my mind:
> 0: member of Project, work in self .leo such as LeoDocs_ZQ.leo, push
> new .rst and .leo into Repo., because we all Leonard
> 1: contributor from fork Repo., work with .rst files,P-R only include
> .rst diff info., because can not requirement  Nancy immediately became
> Leonard
>
> BUT there is some problems:
> 0: members .leo can not auto merge by git? or How to auto merge others
> member's new translated into self .leo?
> 1: new translate work result if merge succeed by git from
> Pull-Request, how to make Member's .leo accept them?
>
> for now , i only think out one way:
> - change the nodes in doc/LeoDocs.leo @rst --> @clean
> - so whatever Nancy/Leonard's translate result will auto exchange with .rst
> - in the same time, every member can keep self outlines in .leo
>

after test, i confirm:

- change @rst -> @clean, will lost so many rST need support by Leo
- and @rst really can not auto merge changed from out files

and, if base same .leo collaborate, member's contributor will make
Merge conflict by git:

Traceback (most recent call last):
  File "/opt/bin/Leo-5.4/leo/core/leoFileCommands.py", line 1251,
in parse_leo_file
parser.parse(theFile) # expat does not support parseString
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py",
line 110, in parse
xmlreader.IncrementalParser.parse(self, source)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/xmlreader.py",
line 123, in parse
self.feed(buffer)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/expatreader.py",
line 217, in feed
self._err_handler.fatalError(exc)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/sax/handler.py",
line 38, in fatalError
raise exception
SAXParseException: :2288:1: not well-formed (invalid token)
read outline in 0.08 seconds


so what is the effective collaborate with .leo for translate LeoDocs ?


> and is there better collaborate ways for doc. translate project?
>
>
> On Thu, Feb 1, 2018 at 10:28 PM, OMlalala  wrote:
>> Overview
>>
>> Hi, I use Leo from one month ago, very enjoy ;-)
>> and I want to make chinese version Doc for spread the perfect Leo, any
>> advices?
>>
> ...
>
> leo-editor-cn
> https://github.com/DebugUself/leo-editor-cn
>
>
> --
> life is pathetic, go Pythonic! 人生苦短, Python当歌!
> 俺: http://zoomquiet.io
> 授: http://creativecommons.org/licenses/by-sa/2.5/cn/
> 怒: 冗余不做,日子甭过!备份不做,十恶不赦!
> KM keep growing environment culture which promoting organization learning!



-- 
life is pathetic, go Pythonic! 人生苦短, Python当歌!
俺: http://zoomquiet.io
授: http://creativecommons.org/licenses/by-sa/2.5/cn/
怒: 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization learning!

-- 
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.


A study outline: leovue/dist/static/components.leo

2018-02-19 Thread Edward K. Ream
Attached is a *copy* of components.leo.  It is for study only.

It may be in the dist directory, but it's likely that Joe, not a script, 
created its contents.

I added many new sections to make the overall organization easier.

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.


components.leo
Description: Binary data


Re: Scripting leo: Programmatic way to reference the vnode containing the script that is being executed?

2018-02-19 Thread Edward K. Ream
On Sunday, February 18, 2018 at 11:21:51 PM UTC-6, Edward K. Ream wrote:

p is the position of the script for @button nodes, @command nodes and for 
> scripts executed by Leo's execute-script command.​
>

Oops. My brain spike. As you say, p is c.p.

I have just created #736: Predefine script_p and script_gnx values in Leo 
scripts , with a 5.8 
milestone.

You could create your own execute-script command if you need this feature 
now.

Edward

P. S. My first idea was that @button nodes have a "Goto Script" rclick menu 
item.

Alas, this mechanism can't be used to solve your problem. Indeed, 
ScriptingController.open_gnx in mod_scripting.py knows the desired gnx to 
bind in the "Goto Script" callback. Leo's c.executeScript method doesn't 
(yet) have that data.

EKR

-- 
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: d026066: the leovue command

2018-02-19 Thread Edward K. Ream
On Mon, Feb 19, 2018 at 1:49 AM, Edward K. Ream  wrote:

2. Build the app: run `npm install` from the
> ​[leovue] folder.
> This fails for me on Windows, as discussed in #735
>  due to problems
> installing node-java.
>

​When I awoke this morning I remembered that a stand-alone build of
node-java works.  So the version required by leovue is probably too low to
get this *fixed* node-java issue: joeferner/node-java#355
. ​I'll investigate
later.

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: ENB: Why python will remain Leo's future

2018-02-19 Thread Edward K. Ream
On Mon, Feb 19, 2018 at 3:22 AM, jkn  wrote:

Rust is an interesting language, but it is totally unsuitable for
>> non-professional programmers.
>>
>
> I'd be interested in learning more about your views of why this is...
>

​Rustaceans must be aware of lifetimes.​

​ Pythonistas don'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 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: ENB: Why python will remain Leo's future

2018-02-19 Thread jkn
Hi Edward

On Sunday, February 18, 2018 at 9:53:38 PM UTC, Edward K. Ream wrote:
>
> On Friday, February 16, 2018 at 3:45:23 AM UTC-6, Edward K. Ream wrote:
>>
>> Rewriting Leo's core is out of the question. Python is:
>>
>> - Best for users as the simplest and most flexible scripting language.
>> - Dynamic. Imagine doing @button in rust.
>> - The basis for Leo's API.
>>
>
>  Rust is an interesting language, but it is totally unsuitable for 
> non-professional programmers.
>
> Edward
>

A bit of an aside, but I'd be interested in learning more about your views 
of why this is...

Regards
Jon N
 

-- 
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.