Anyone having troubles seeing git revs

92 views
Skip to first unread message

Edward K. Ream

unread,
Jun 17, 2019, 11:34:02 AM6/17/19
to leo-editor
Lewis Neal reports problems that go back to April 12.

I haven't noticed any problems.  Have you?

On startup, I see the following in the console and the log pane:

Leo 6.0-devel, devel branch, build 38441582be
2019-06-17 09:47:41 -0500

Edward

Rob

unread,
Jun 17, 2019, 1:28:56 PM6/17/19
to leo-editor
This is what I see in the log pane:

Leo 6.0-devel, devel branch
Python 3.4.3, PyQt version 5.4.1
Windows 8 AMD64 (build 6.2.9200) 

The console:

Qt: Untested Windows version 10.0 detected!

import-jupyter-notebook requires nbformat package
Leo 6.0-devel, devel branch
livecode.py: can not import meta
you can install meta with `pip install meta`



Rob...

Chris George

unread,
Jun 17, 2019, 2:04:41 PM6/17/19
to leo-e...@googlegroups.com

Leo 6.0-devel, devel branch, build 38441582be
2019-06-17 09:47:41 -0500

Python 3.6.8, PyQt version 5.12.3
linux



Chris


--
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+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/6ff492c0-575c-44fb-9160-34df2c6e7bb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Edward K. Ream

unread,
Jun 17, 2019, 5:01:49 PM6/17/19
to leo-editor
On Monday, June 17, 2019 at 10:34:02 AM UTC-5, Edward K. Ream wrote:
Lewis Neal reports problems that go back to April 12.

The code in question is LeoApp.computeSignon.  It calls g.getGitVersion, with no directory kwarg.  This should set the 'cwd' kwarg to subprocess.check_output to g.app.loadDir.

Perhaps the default should be two directories up from g.app.loadDir:  leo-editor rather than leo-editor/leo/core.

Lewis, what does your log show for the various directories?  Mine is:

current dir: c:/leo.repo/leo-editor
load dir: C:/leo.repo/leo-editor/leo/core
global config dir: C:/leo.repo/leo-editor/leo/config
home dir: C:/Users/edreamleo

Edward

lewis

unread,
Jun 17, 2019, 5:45:44 PM6/17/19
to leo-editor
My log for the various directories:

current dir: N:/git/leo-editor
load dir: N:/git/leo-editor/leo/core
global config dir: N:/git/leo-editor/leo/config
home dir: C:/Users/lewis

Regards
Lewis

On Tuesday, June 18, 2019 at 7:01:49 AM UTC+10, Edward K. Ream wrote:

Lewis, what does your log show for the various directories?

Edward

Edward K. Ream

unread,
Jun 17, 2019, 6:16:18 PM6/17/19
to leo-editor
On Mon, Jun 17, 2019 at 4:45 PM lewis <lewi...@operamail.com> wrote:
My log for the various directories:

current dir: N:/git/leo-editor
load dir: N:/git/leo-editor/leo/core
global config dir: N:/git/leo-editor/leo/config
home dir: C:/Users/lewis

Hmm.  Is there anything special about the N: drive?

Edward

Edward K. Ream

unread,
Jun 17, 2019, 8:14:23 PM6/17/19
to leo-editor
On Monday, June 17, 2019 at 12:28:56 PM UTC-5, Rob wrote:
This is what I see in the log pane:

Leo 6.0-devel, devel branch
Python 3.4.3, PyQt version 5.4.1
Windows 8 AMD64 (build 6.2.9200) 

Please pull the latest version of Leo.  Rev 5d8495 contains a new trace.

Please run leo with --trace=startup and report the results.

Edward

Rob

unread,
Jun 17, 2019, 8:35:53 PM6/17/19
to leo-editor
In the console:

Qt: Untested Windows version 10.0 detected!

import-jupyter-notebook requires nbformat package
reading settings in D:/Synced/github repos/leo/leo/config/leoSettings.leo
reading settings in C:/Users/rob_iawac46/.leo/myLeoSettings.leo
Exception in g.getGitVersion
Traceback (most recent call last):

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

  File "C:\Python34\lib\subprocess.py", line 620, in check_output
    raise CalledProcessError(retcode, process.args, output=output)

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 4992, in getGitVersion
    shell=True,

  File "C:\Python34\lib\subprocess.py", line 620, in check_output
    raise CalledProcessError(retcode, process.args, output=output)

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

Leo 6.0-devel, devel branch
livecode.py: can not import meta
you can install meta with `pip install meta`
load_session loading: K:/Leo Share/Workbook/Shared Workbook.leo
reading settings in K:/Leo Share/Workbook/Shared Workbook.leo
DynamicWindow.__init__ Shared Workbook.leo
restoreWindowState Shared Workbook.leo found key: windowState:K:/Leo Share/Workbook/Shared Workbook.leo
load_session loading: K:/Opportunities/Clients/Sutherland/Sutherland.leo
reading settings in K:/Opportunities/Clients/Sutherland/Sutherland.leo
DynamicWindow.__init__ Sutherland.leo
restoreWindowState Sutherland.leo found key: windowState:K:/Opportunities/Clients/Sutherland/Sutherland.leo
load_session loading: R:/Rob-Master/BPC/BPC.leo
reading settings in R:/Rob-Master/BPC/BPC.leo
DynamicWindow.__init__ BPC.leo
restoreWindowState BPC.leo found key: windowState:R:/Rob-Master/BPC/BPC.leo
startup time: 16.76 sec


In the log pane:

Leo Log Window
Leo 6.0-devel, devel branch
Python 3.4.3, PyQt version 5.4.1
Windows 8 AMD64 (build 6.2.9200) 
import-jupyter-notebook requires nbformat package
current dir: D:/Synced/github repos/leo
load dir: D:/Synced/github repos/leo/leo/core
global config dir: D:/Synced/github repos/leo/leo/config
home dir: C:/Users/rob_iawac46
reading settings in D:/Synced/github repos/leo/leo/config/leoSettings.leo
reading settings in C:/Users/rob_iawac46/.leo/myLeoSettings.leo
Exception in g.getGitVersion
Traceback (most recent call last):

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

  File "C:\Python34\lib\subprocess.py", line 620, in check_output
raise CalledProcessError(retcode, process.args, output=output)

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 4992, in getGitVersion
shell=True,

  File "C:\Python34\lib\subprocess.py", line 620, in check_output
raise CalledProcessError(retcode, process.args, output=output)

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

livecode.py: can not import meta
you can install meta with `pip install meta`
reading settings in K:/Leo Share/Workbook/Shared Workbook.leo
read 17 files in 5.10 seconds
read outline in 5.46 seconds

Chris George

unread,
Jun 17, 2019, 9:13:31 PM6/17/19
to leo-e...@googlegroups.com
chris@technatica:~/leo-editor$ python3 ./launchLeo.py --trace=startup

setting leoID from os.getenv('USER'): 'chris'
reading settings in /home/chris/leo-editor/leo/config/leoSettings.leo
reading settings in /home/chris/.leo/myLeoSettings.leo
reading settings in /home/chris/.leo/themes/BreezeDarkThemeLocal.leo
getGitVersion commit 5d84957090295c6da601f94bfeb91c31c6753e8d
Author: Edward K. Ream <edre...@gmail.com>
Date:   2019-06-17 19:12:39 -0500

    Added trace in g.getGitVersion, enabled with --trace=startup

getGitVersion commit 5d84957090295c6da601f94bfeb91c31c6753e8d
Author: Edward K. Ream <edre...@gmail.com>
Date:   2019-06-17 19:12:39 -0500

    Added trace in g.getGitVersion, enabled with --trace=startup

Leo 6.0-devel, devel branch, build 5d84957090
2019-06-17 19:12:39 -0500
load_session loading: /home/chris/leo-editor/leo/core/LeoPyRef.leo
reading settings in /home/chris/leo-editor/leo/core/LeoPyRef.leo
DynamicWindow.__init__ LeoPyRef.leo
restoreWindowState LeoPyRef.leo found key: windowState:/home/chris/leo-editor/leo/core/LeoPyRef.leo
load_session loading: /home/chris/leo-editor/leo/plugins/leoPluginsRef.leo
reading settings in /home/chris/leo-editor/leo/plugins/leoPluginsRef.leo
DynamicWindow.__init__ leoPluginsRef.leo
restoreWindowState leoPluginsRef.leo found key: windowState:/home/chris/leo-editor/leo/plugins/leoPluginsRef.leo
load_session loading: /home/chris/.leo/themes/BreezeDarkThemeLocal.leo
reading settings in /home/chris/.leo/themes/BreezeDarkThemeLocal.leo
DynamicWindow.__init__ BreezeDarkThemeLocal.leo
restoreWindowState BreezeDarkThemeLocal.leo found key: windowState:/home/chris/.leo/themes/BreezeDarkThemeLocal.leo
startup time:  6.07 sec

HTH,

Chris

--
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+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.

Edward K. Ream

unread,
Jun 18, 2019, 1:43:37 AM6/18/19
to leo-editor
On Mon, Jun 17, 2019 at 8:13 PM Chris George <techn...@gmail.com> wrote:

chris@technatica:~/leo-editor$ python3 ./launchLeo.py --trace=startup
 
snip
 
getGitVersion commit 5d84957090295c6da601f94bfeb91c31c6753e8d
Author: Edward K. Ream <edre...@gmail.com>
Date:   2019-06-17 19:12:39 -0500

snip

Leo 6.0-devel, devel branch, build 5d84957090
2019-06-17 19:12:39 -0500

snip

This is expected.  git is returning a string containing "commit" and Leo is using that to print the build number.  Thanks for the report.

Edward

Edward K. Ream

unread,
Jun 18, 2019, 1:49:57 AM6/18/19
to leo-editor
On Mon, Jun 17, 2019 at 7:35 PM Rob <lar...@gmail.com> wrote:
In the console:

Snip

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

  File "D:\Synced\github repos\leo\leo\core\leoGlobals.py", line 4992, in getGitVersion

snip

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

Good.  I expected something like this.

Please execute `git log -n 1` from a console, in the leo-editor/leo/core directory.  Presumably it will fail. When you correct the failure Leo will then report build numbers.

Edward

lewis

unread,
Jun 18, 2019, 6:06:42 AM6/18/19
to leo-editor
Running commit f203a28.
In the console:

N:\git\leo-editor>launchleo.py --trace=startup

reading settings in N:/git/leo-editor/leo/config/leoSettings.leo
reading settings in C:/Users/lewis/.leo/myLeoSettings.leo
Empty setting name in False
set parent @settings
reading settings in C:/Users/lewis/.leo/LeoBlackGraySolarized.leo

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

  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 4992, in getGitVersion
    shell=True,

  File "C:\Users\lewis\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
    **kwargs).stdout

  File "C:\Users\lewis\AppData\Local\Programs\Python\Python37\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 "N:\git\leo-editor\leo\core\leoGlobals.py", line 4992, in getGitVersion
    shell=True,

  File "C:\Users\lewis\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
    **kwargs).stdout

  File "C:\Users\lewis\AppData\Local\Programs\Python\Python37\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.


Leo 6.0-devel, devel branch
livecode.py: can not import meta
you can install meta with `pip install meta`
rss.py: can not import feedparser
load_session loading: C:/Users/lewis/.leo/workbook.leo
reading settings in C:/Users/lewis/.leo/workbook.leo
DynamicWindow.__init__ workbook.leo
restoreWindowState workbook.leo found key: windowState:C:/Users/lewis/.leo/workbook.leo
startup time:  3.72 sec
[end]

Regards
Lewis

Edward K. Ream

unread,
Jun 18, 2019, 8:02:44 AM6/18/19
to leo-editor
On Tue, Jun 18, 2019 at 5:06 AM lewis <lewi...@operamail.com> wrote:
Running commit f203a28.
In the console:

N:\git\leo-editor>launchleo.py --trace=startup

No.  You are to run this in the console: git log -n 1

Edward

lewis

unread,
Jun 18, 2019, 9:26:36 AM6/18/19
to leo-editor
Can you please clarify? You want me to run 'git log -n 1' from a git console as shown below?

MINGW64 /n/git/leo-editor/leo/core (devel)
$

Regards
Lewis

Edward K. Ream

unread,
Jun 18, 2019, 10:32:39 AM6/18/19
to leo-editor
On Tue, Jun 18, 2019 at 8:26 AM lewis <lewi...@operamail.com> wrote:

Can you please clarify? You want me to run 'git log -n 1' from a git console as shown below?

Yes.  It's almost certainly failing.  I want us both to see the actual os message.  That should help you get git log working, which is what Leo needs.

Edward

lewis

unread,
Jun 18, 2019, 11:05:10 AM6/18/19
to leo-editor
Here it is:
lewis@Argon MINGW64 /n/git/leo-editor/leo/core (devel)
$ git log -n 1
commit f203a28564b0d8f8e09a2e54f74a325f00f69a88 (HEAD -> devel, origin/devel)
Author: Edward K. Ream <ed......@gmail.com>
Date:   Tue Jun 18 03:31:03 2019 -0500

    Added comment about autocompleter plugins
[end]


Lewis

Edward K. Ream

unread,
Jun 18, 2019, 11:10:53 AM6/18/19
to leo-editor
Thanks.  The cause of your troubles isn't clear.  Leo thinks this command is failing, but clearly it isn't.  Presumably there is a problem with the result code from mingw.

Edward

Edward K. Ream

unread,
Jun 18, 2019, 12:04:08 PM6/18/19
to leo-editor
On Tuesday, June 18, 2019 at 10:10:53 AM UTC-5, Edward K. Ream wrote:

I've attempted a fix in devel.  Please pull the latest rev (b8fe3e1).

Then run Leo with --trace=startup and report the results.

Edward
Reply all
Reply to author
Forward
0 new messages