-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
🐛 Crash searching a long diff #210
Comments
Hi @jlawton, thanks for reporting and no worries, happy to try to get to the bottom of it without the original problematic diff. Are you able to build delta from the git repo and try the version in https://github.com/dandavison/delta#build-delta-from-source |
It looks like it's fixed on master! Thanks! The whole diff paged. I'm impressed with how simple the whole installation of rust and the build was. Just another reminder I should give rust a try. A huge contrast to a ruby environment I had to set up the other day. Of course, I also realized that the two behaviors I was seeing was probably an artifact of |
Great. I'm aiming to get a new release out soon, but a lot of bug fixes, features and refactoring got bundled together this time so it's taking a while! |
delta --version
: 0.1.1git config core.pager
: delta --darkI have a 25MB diff that unfortunately I can't share. It's a mixture of various code, XML, PDFs, etc. I'm sorry if that leaves this a little lean on detail. My main lead is that the diff has a lot of inexact renames, but that could be a red herring.
Two bad behaviors happen with delta.
I can
git show
and hitG
to jump to the end, I only get to line 184,066, with the rest of the diff cut off. The same withgit show | less
, I get to 547,184.If I kick off a search that doesn't match instead, I get an out of bounds error with the following trace:
The same with
git show | less
spits out the following (on stderr,CTRL-L
repaints without the lines) but thenG
does get to the end of the diff.The text was updated successfully, but these errors were encountered: