Comments (10)
Does piping the output into less -R
do what you want?
from icdiff.
More or less ;-)
Works great for an overview.
But for larger diff's, it is necessary to let icdiff finish its streaming to less - otherwise I get a lot of exceptions from icdiff due to its broken pipe when I quit less.
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
#--------------------------------------------
# multiple times
#--------------------------------------------
Traceback (most recent call last):
File "/home/flwi/bin/icdiff/icdiff", line 531, in <module>
lines_a, lines_b, headers[0], headers[1], context=(not options.whole_file), numlines=int(options.numlines)))
IOError: [Errno 32] Broken pipe
#--------------------------------------------
# multiple times
#--------------------------------------------
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
#--------------------------------------------
# multiple times
#--------------------------------------------
Traceback (most recent call last):
File "/home/flwi/bin/icdiff/icdiff", line 531, in <module>
lines_a, lines_b, headers[0], headers[1], context=(not options.whole_file), numlines=int(options.numlines)))
IOError: [Errno 32] Broken pipe
from icdiff.
yes, this please!
broken pipe errors with less are a bit annoying.
from icdiff.
4228d6c fixes the broken pipe errors.
Is that enough or do we still want an integrated pager?
from icdiff.
still get following errors if I run icdiff as git difftool, pipe it to less and quit less before git passes all the files (so git difftool --no-prompt --extcmd icdiff | less
for repo that has 4 relatively large changed files then q
right away):
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
from icdiff.
@yamalight I haven't been able to reproduce the error you're seeing. It looks like http://stackoverflow.com/questions/12790328/how-to-silence-sys-excepthook-is-missing-error though, which isn't promising?
from icdiff.
@jeffkaufman yep, that's it. tried the solution provided in last reply, added sys.stdout.flush()
to icdiff on line 532 - and it actually worked OK for me.
from icdiff.
Flushing stdout doesn't seem like it would break anything; committed 94ba182.
from icdiff.
awesome, works perfectly now!
from icdiff.
Cool, thx for fixing!
from icdiff.
Related Issues (20)
- update icdiff on pypi.org to latest version HOT 2
- ChangeLog does not mention versions newer than 1.9.4 HOT 1
- BUG: Filenames show as mismatch when using exclusions
- Bug report: configuration for `git icdiff` did not work HOT 2
- installing the latest release-2.0.0 requires different command than install instructions HOT 2
- icdiff doesn't work on windows HOT 2
- Add support to specify colors using RGB ? HOT 1
- Add Support for custom patch hunk headers (with some builtins) HOT 1
- It seems have some problem about utf-8 HOT 1
- git icdiff shows old filname for renamed files HOT 2
- Multi-version of the Python HOT 1
- Exit code 1 using process substitutions HOT 4
- Pip install with `--platform` showing ERROR HOT 2
- [issue] linux more shows empty line. ex) icdiff -N fileA fileB | more -60 HOT 1
- Config file HOT 1
- Feature Request: Add an option to output directories before the files (recursively) HOT 1
- icdiff hanging on large files HOT 5
- Not clear how to install icdiff HOT 2
- Publish wheels for icdiff HOT 3
- Questions about Copilot + Open Source Software Hierarchy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icdiff.