-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows support #12
Comments
Thanks @lzybkr! I'm definitely happy to support Windows, in collaboration with one or more people using delta on Windows. (I don't have access to a Windows development environment. There are free VMs available from Microsoft for testing, but the problem is it really needs someone who knows about the different terminal emulator and shell / dev environment options.) I did have a Windows CI build running, and I've reinstated it in response to this issue (0e0ea02).
Right. I am not sure yet why this is. I'd be happy to participate in discussions and review code fixing things like this on Windows.
OK, I suspect that this is because delta is using default colors that are not supported by your terminal emulator (i.e. your terminal emulator does not support arbitrary 24 bit colors). You can see the colors delta is using like this, and you can use the command line options it prints out to select different colors that will work with your terminal emulator:
|
My terminal definitely supports 24 bit colors (I'm using the new Windows Terminal): Based on your feedback, I thought Are there potential issues with LF vs. CRLF? |
OK, I should have read your Github profile first :) I'm happy to help with this. I've just released v 0.0.10, so Delta will now have Windows binaries built via Travis CI on the Releases page: https://github.com/dandavison/delta/releases/download/0.0.10/delta-0.0.10-x86_64-pc-windows-msvc.zip If get a moment to try this binary that would be fantastic; presumably it behaves the same as the one you're already using. |
Is it just the If you do an equivalent of the command below, do you see the same ANSI color escape codes that I'm seeing?
|
So It looks like the issue is |
I hope that the box drawing bug on Windows is fixed in 0.0.13 (#22). Thanks for pointing it out. |
Yeah, seems like it's fixed. I have some patches for I'm still seeing some minor issues, but I can probably just open up new issues for those when I've confirmed they are issues with |
In my fork of |
@lzybkr thanks very much for all your work here and related work on |
Hi, download link for Windows is pointing to delta version 0.15.0, which does not support recently introduced options like
AFAICT, this problem is caused by (recent?) changes in onig_sys, as discussed in rust-onig/rust-onig#109 I am not sure if/when a fixed version of onig_sys will be published, is there any chance of downgrading delta's dependencies to use an older version of onig_sys that works on Windows too? |
Hi @bajtos thanks very much for looking into this. Let's sort this out. I have been aware that the Travis Windows builds were broken (I posted a question about it here on the Travis forums). I don't have a Windows machine locally. Is the best way for me to test just to try Travis Windows builds until they work? |
OK I tried downgrading downgrading to In any case, fixed now in master, and I'll get a release out (and hopefully the Windows binary built in the new way will work fine on your system). Thanks for pinging me on this (and let me know if something I said there doesn't sound right). |
The Windows download in the latest release is https://github.com/dandavison/delta/releases/download/0.1.1/delta-0.1.1-x86_64-pc-windows-gnu.zip |
Note that the If you want to use the |
Thanks @lzybkr that's good to know, and I think it makes sense to switch to Github Actions. I had a couple of questions for you:
|
My memory is hazy but I think I was using As for packaging - I'm not sure when they'll release a new version, but my PR hasn't been merged yet - and I see there is a conflict I need to resolve before it can be merged. |
Thank you @dandavison for fixing Windows build! I downloaded the new version 0.1.1 using the link you provided and also installed the patched version of Thank you folks, you are awesome! ❤️ |
Delta continues to have functioning Windows binaries (and these are back on the Related:
|
Chiming in to say that I use delta frequently within a pretty native Windows environment. Powershell 7 inside of the Microsoft Terminal. Building delta from master with Rust toolchain I also wrote a powershell function which wraps delta and other tools, to have find and replace with diff previews. I use it pretty often on both Windows and *nix systems inside powershell. It used to not render the arrow character on Windows for this but that seems to no longer be the case (this may have been unrelated to Edit: I had my colors wrong, changed the first screenshot |
Is Windows support planned?
delta
builds successfully if you remove the dependency ontermios
fromCargo.toml
.Trying it out though it seems there are a couple issues demonstrated in the screenshot below (which is captured from my 1 line change to get
delta
to build):Note first line in the box around the context is off by 1.
But more worrisome - the actual diff in
Cargo.toml
isn't highlighted at all like the default pager would:The text was updated successfully, but these errors were encountered: