Skip to content
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

No colors in Warp terminal when using Source Code Pro #1583

Open
gthb opened this issue Jul 5, 2022 · 27 comments
Open

No colors in Warp terminal when using Source Code Pro #1583

gthb opened this issue Jul 5, 2022 · 27 comments
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@gthb
Copy link

gthb commented Jul 5, 2022

Discord username (optional)

gthb

Describe the bug

difftastic output, produced with git difftool, configured in .gitconfig per these instructions, renders with no colors in Warp. Running the same command in Kitty gives me colors.

Losing the colors makes quite a difference for the usefulness of difftastic :-)

[EDIT: I've realized that I also have no colors in vim or in anything else — theme colors show, but terminal colors are monochrome in Warp for me.]

To Reproduce

Steps to reproduce:

  1. Install difftastic: https://difftastic.wilfred.me.uk/installation.html
  2. Configure it as your diff tool: https://difftastic.wilfred.me.uk/git.html
  3. run git difftool HEAD^ in some repo
  4. Note the lack of colors

(or just open vim on a syntax-highlightable file and :syntax on — in another terminal you'll see colors, in Warp it's black and white.)

Expected behaviour

I expect to see terminal colors.

Screenshots

In Warp:

image

In Kitty:

image

Operating System

MacOS

OS Version

12.4

Shell Version

zsh 5.8.1 (x86_64-apple-darwin21.0)

Warp Version

v0.2022.06.27.09.14.stable_01

Additional context

No response

Does this block you from using Warp daily?

No ... well, doesn't exactly block me, but makes me disinclined. I switched back to Kitty because of this and #1428.

Warp Internal (ignore): linear-label:24888f54-df93-45d5-9bdd-e38f740cac19

No response

@gthb
Copy link
Author

gthb commented Jul 5, 2022

Sidenote: the bug template says:

Click the 3-dots menu docked to the right of the tabs in Warp and click the copy button,

but there is no copy button there (changed since the bug template was made, no doubt), just a very faint version string that's not copyable. Found the copyable one in the Settings dialog instead.

@elviskahoro
Copy link

Thanks for calling both of these out. Will update the bug template! I'll let u know once we have updates regarding the color

@elviskahoro
Copy link

@gthb does this still happen to you? Our team just tested and we're getting colored output.

@gthb
Copy link
Author

gthb commented Sep 16, 2022

Yes, still happens in latest release.

@elviskahoro
Copy link

@gthb I have the default settings from the installation documents and colors are working for me. Do colors work in your vim installation btw?

CleanShot 2022-09-19 at 13 12 32@2x

@elviskahoro
Copy link

@gthb also what version of warp are you using?

@gthb
Copy link
Author

gthb commented Sep 19, 2022

Colors do not work in my vim installation under Warp (and they do work under Kitty and iTerm2).

Warp version is v0.2022.09.07.14.56.stable_00 installed today —but same deal for newest version a few days ago

@gthb
Copy link
Author

gthb commented Sep 20, 2022

I ruled out anything in my ~/.zshrc and ~/.terminfo (the latter being a symlink to /Applications/kitty.app/Contents/Resources/kitty/terminfo) by renaming them away and starting a new terminal in Warp — no difference.

@gthb gthb changed the title No colors in difftastic output No colors in Warp terminal Sep 20, 2022
@gthb
Copy link
Author

gthb commented Sep 20, 2022

Edited title and description accordingly — Warp is not showing me any terminal colors. Apologies for the previous too-narrow title and description.

@elviskahoro
Copy link

@gthb do colors work in Vim if you run it like so:

vim -u NONE

@gthb
Copy link
Author

gthb commented Sep 21, 2022

No, it looks the same.

@warpdotdev-devx
Copy link
Member

warpdotdev-devx commented Sep 21, 2022 via email

@gthb
Copy link
Author

gthb commented Sep 26, 2022

Can you check whether it’s something in your dotfiles by setting up clean configs:

Tried that. Same deal, all monochrome.

@jimwins
Copy link

jimwins commented Sep 29, 2022

I'm seeing almost the same problem on macOS 12.6 with v0.2022.09.20.08.08.stable_01.

What is strange is that the one bit of color I do get is the mode in the modeline in vim, but nothing else. I don't see colors from other programs like ls, too.

Attached screenshots are from running vim on a remote Linux box (Terminal vs. Warp), but the results are the same with running things locally, too.

Screen Shot 2022-09-29 at 12 04 37 PM (Terminal)
Screen Shot 2022-09-29 at 12 04 43 PM (Warp)

@gthb
Copy link
Author

gthb commented Oct 24, 2022

In case it's any clue, I just noticed that when I switch to a light theme, the text is still rendered in white, only visible because the outlines are not all white (I guess because the antialiasing pixels are colored as if the text were black, or maybe as if the background were black), see screenshot:

image

@ckilb
Copy link

ckilb commented Nov 10, 2022

I just like to say that i have exactly the same issue.
Once I installed Warp colors were working but after a few hours using it they disappeared. Now all the text is white.

And it keeps being white, even after

  • restarting Warp
  • rebooting MacOS
  • changing theme
  • removing warp.sqlite
  • removing that number-only file in the same directory like warp.sqlite

Screenshot 2022-11-10 at 10 01 37

Edit:
It seems to be related to the chosen font in Preferences > Appearance.
For most fonts, colors work. For Source Code Pro it doesn't work.

This is a serious bug because we all know that - even if Source Code Pro was once developed for Adobe - it's obviously the best font you can use in a terminal.

@gthb
Copy link
Author

gthb commented Nov 10, 2022

It seems to be related to the chosen font in Preferences > Appearance.
For most fonts, colors work. For Source Code Pro it doesn't work.

Confirmed, I had that font configured, and switching to Menlo gives me colors.

@elviskahoro elviskahoro changed the title No colors in Warp terminal No colors in Warp terminal when using Source Code Pro Nov 10, 2022
@vorporeal
Copy link

Hm, I just tried to install Source Code Pro from Google Fonts (https://fonts.google.com/specimen/Source+Code+Pro) and can't reproduce the issue.

Could one of you share with me the font files you're using so I can try to repro on my end?

Also, are you running the latest version of Warp? Want to make sure it isn't something that's been fixed already.

@jimwins
Copy link

jimwins commented Nov 19, 2022

Just confirmed that it still happens with v0.2022.11.14.14.55.stable_01 and Source Code Pro downloaded from https://www.fontsquirrel.com/fonts/source-code-pro.

But it does work with the version downloaded from Google Fonts (both the variable and static fonts), and the OpenType version from here: https://github.com/adobe-fonts/source-code-pro/releases/tag/2.038R-ro%2F1.058R-it%2F1.018R-VAR

@jimwins
Copy link

jimwins commented Nov 19, 2022

Also works with the TrueType version from the Github project.

@RDStewart
Copy link

I didn't find this issue when looking earlier, so opened #1873. Turns out it's another manifestation of this one. When using a Source Code Pro which misbehaves, it's always white everywhere. This includes inside the "Terminal font", "Font size", and "Line height" fields. With lighter themes (especially Solarized Light), it gets impossible to read anything.

I installed Source Code Pro through Homebrew. Terminal.app is able to show colors with this same instance of Source Code Pro. After a quick brew uninstall font-source-code-pro; brew install font-source-code-pro, I now have working colors with Source Code Pro in Warp.

My day-job machine is still misbehaving, so I'll try to provide the instance of Source Code Pro from it.

@ckilb
Copy link

ckilb commented Nov 21, 2022

@vorporeal
Copy link

@jimwins Thanks for that link; I'm able to repro with the version from Font Squirrel. Taking a look now to see what's going on.

@vorporeal
Copy link

In the meantime, as a workaround, try installing Source Code Pro again from a different source (e.g.: Google Fonts) - it seems only some copies of Source Code Pro have this issue.

@RDStewart
Copy link

On further investigation, this may be a known issue with Source Code Pro. Patched a few years ago, but I don't know of any tools which check to see if any of your fonts have available updates.

In case reproduction still matters, remove any installed instances of Source Code Pro. Download source-code-pro-2.030R-ro-1.050R-it.zip, unzip it, then move the contents of the OTF folder to ~/Library/Fonts/ and restart Warp.

It may be worth adding something to check for old version of Source Code Pro and warning the user. I'm not really sure how that would be accomplished, though.

@vorporeal
Copy link

Yeah, MacOS is reporting that the font uses pre-colored glyphs, a property which we respect (though perhaps we shouldn't).

I think there's not much we can do for now (aside from a warning to the user, which while a good idea, we probably won't get to for a little while).

@warpdotdev-devx warpdotdev-devx bot added the Bugs Bugs, Hangs, Crash, and Freezes label Jan 9, 2023
@zmargeta
Copy link

zmargeta commented May 11, 2024

Same issue with JuliaMono font, @vorporeal when might you change the behaviour related to pre-colored glypths if this is the case. No other terminal seems to do this. I installed the font with brew (font-juliamono)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes
Projects
None yet
Development

No branches or pull requests

8 participants