Closed gaak99 closed 6 years ago
Here's output of bash -x of oxmerge
Downloading ancestor db ... done.
Checking ancestor rev data ...
downloading rev 59f80446decd data ... done.
+ echo 'Viewing metadata latest 2 revisions (cached locally) ...'
Viewing metadata latest 2 revisions (cached locally) ...
+ oxly log --oneline orgzly/misc-notes-summer18.org
+ head -2
5a8e0446decd 42408 2018-09-13 12:23:09 EDT-0400 06cbb43b
5a830446decd 49729 2018-09-08 09:11:14 EDT-0400 1d20a394
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
+ echo 'Viewing metadata least latest 2 revisions (cached locally) ...'
Viewing metadata least latest 2 revisions (cached locally) ...
+ tail -2
+ oxly log --oneline orgzly/misc-notes-summer18.org
598a0446decd 24376 2018-07-23 21:58:26 EDT-0400 baf92f5c
59860446decd 23970 2018-07-23 18:26:19 EDT-0400 5d0aa9d8
We can reproduce it easy like so
oxly log --oneline orgzly/misc-notes-summer18.org|head -1
5a8e0446decd 42408 2018-09-13 12:23:09 EDT-0400 06cbb43b
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
Looks like it's a well known problem
https://stackoverflow.com/questions/12790328/how-to-silence-sys-excepthook-is-missing-error
@DavidZ the most obvious place in which this comes up is if output is pipped to head, a very common use-case if you wish to check the output before redirecting to a file. – Ian Sudbery Nov 3 '15 at 10:28
Looks like no quick fix at Python/bash script level /sad.
But probably can write a log file grokker in oxly that only outputs the num of lines requested (rather than |head
).
So far I think it's minor/cosmetic.