diff-so-fancy icon indicating copy to clipboard operation
diff-so-fancy copied to clipboard

Started getting a stacktrace/core dump using diff-so-fancy in powershell

Open theperm opened this issue 2 years ago • 3 comments

All of sudden i started getting a stack trace/dump from diff-so-fancy. I'm using it from powershell on windows

This was run from bash (but diff-so-fancy is still working in bash) This is what was in the clipboard from /report-bug.sh | git diff HEAD..HEAD^ diff.txt

CgoKCiAtLWNvbG9yCmdpdCBjb25maWcgcGFnZXIuZGlmZgpnaXQgY29uZmlnIHBhZ2VyLnNob3cK

and this is diff.txt

--color git config pager.diff git config pager.show

theperm avatar Sep 14 '21 12:09 theperm

It really shouldn't be possible for d-s-f to crash/stack trace as it's just a Perl script. At worst it should throw a Perl exception and dye cleanly.

I suspect you have an underlying issue either with your Perl installation, or your Powershell installation. Do other shell things work OK?

scottchiefbaker avatar Sep 14 '21 14:09 scottchiefbaker

yes, i think it has something to do with "less"

theperm avatar Nov 22 '21 23:11 theperm

See above... Perl doesn't have the ability to stack trace unless your Perl installation itself gets corrupted. I suspect another tool in the chain, perhaps less is causing the issue. Does it go away if you remove less from the command?

scottchiefbaker avatar Nov 23 '21 04:11 scottchiefbaker