Lewis, please run another script

74 views
Skip to first unread message

Edward K. Ream

unread,
Jun 22, 2019, 12:33:05 PM6/22/19
to leo-editor
Not sure you are getting notifications from #1209.

Please pull the latest rev.  Recent revs improve tracing for this issue.

Please run `leo --trace=startup` (without back ticks) from a console and report the results.

Thanks.

Edward

lewis

unread,
Jun 22, 2019, 7:10:11 PM6/22/19
to leo-editor
#1209 updated

Lewis

Edward K. Ream

unread,
Jun 22, 2019, 7:33:10 PM6/22/19
to leo-editor


On Sat, Jun 22, 2019 at 6:10 PM lewis <lewi...@operamail.com> wrote:
#1209 updated

Totally weird.  git log -n 1 works fine from your console, but returns exit status 1 from within Leo.

Is the current working directory the same for each?  I'm running out of ideas.

Edward

lewis

unread,
Jun 23, 2019, 7:12:01 AM6/23/19
to leo-editor
I think Rob Keeney reported similar results in the console.
It may be worth getting an update from him.

Regards
Lewis

Rob

unread,
Jun 23, 2019, 8:17:40 AM6/23/19
to leo-editor
Would be glad to help. However, now that I'm using Anaconda3 on Win10 to start Leo (via batch file), it won't accept command line arguments. I would prefer a simpler way, but it's not obvious how to get there from here.

Rob...

Rob

unread,
Jun 23, 2019, 8:32:58 AM6/23/19
to leo-editor
Perhaps this will help. From an Anaconda3 prompt within the Leo main directory I entered:

python launchLeo.py --trace=startup

I got the following:

Exception in g.getGitVersion
Traceback (most recent call last):

  File "D:\Synced\github repos\leo\leo\core\leoGlobals.py", line 5076, in getGitVersion
shell=True,

  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout

  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 487, in run
output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command 'git log -n 1 --date=iso' returned non-zero exit status 1.

Exception in g.getGitVersion
Traceback (most recent call last):

  File "D:\Synced\github repos\leo\leo\core\leoGlobals.py", line 5076, in getGitVersion
shell=True,

  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 395, in check_output
**kwargs).stdout

  File "C:\ProgramData\Anaconda3\lib\subprocess.py", line 487, in run
output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command 'git log -n 1 --date=iso' returned non-zero exit status 1.

Not sure if that's what you're looking for.

Rob...


On Sunday, June 23, 2019 at 7:12:01 AM UTC-4, lewis wrote:

Chris George

unread,
Jun 23, 2019, 9:12:41 AM6/23/19
to leo-editor
Hi Rob,

It has been 19 years since I used a Windows computer so I can't really help you directly but here is the bash script I use to start Leo on linux.

#!/bin/bash
cd leo
-editor
git pull
python3 launchLeo
.py $1 $2 $3

The $1 $2 $3 take three command line arguments and pass them to Leo. I think something similar should work on WIndows.

HTH,

Chris

Edward K. Ream

unread,
Jun 23, 2019, 9:45:58 AM6/23/19
to leo-editor
On Sun, Jun 23, 2019 at 7:17 AM Rob <lar...@gmail.com> wrote:
Would be glad to help. However, now that I'm using Anaconda3 on Win10 to start Leo (via batch file), it won't accept command line arguments.

Append %* to your script. For example:

python c:\leo.repo\leo-editor\launchLeo.py --gui=qttabs %*

Edward

Rob

unread,
Jun 23, 2019, 2:50:32 PM6/23/19
to leo-editor
Discovered that I need to place arguments `after` the path and double quotes (spaces in path require "path to leo"), not inside the double quotes. Nevertheless, I still get goofy results from `--trace=startup` (see additional reply below).
Reply all
Reply to author
Forward
0 new messages