helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
32.77k stars 2.41k forks source link

Themes seem to sometimes not work through WSL #7162

Closed jquesada2016 closed 1 year ago

jquesada2016 commented 1 year ago

Summary

When running Helix within WSL, through a terminal emulator, such as the new Windows terminal emulator, or Alacritty, then themes seem to not be applied, and instead I get only black-and-white styling:

image

However, when I access helix through WSL, from, for example an integrated terminal within VS Code, themes work fine!

image

Not sure what's going on here. The runtime files, and themes definitely seem to be there, since VS Code's terminal is able to pick up the colors.

Reproduction Steps

I tried installing from package manager, as well as building from lates master, then switched to latest 23.05. I also tried using both `HELIX_RUNTIME` environment variables, as well as symlinking the runtime files into `~/.config/helix/runtime`. Nothing worked, besides running Helix within WSL inside VS Code I expected this to happen: Themes to work, regardless of the terminal emulator I used. Instead, this happened: Theme colors only seemed to be applied when attaching through VS Code's integrated terminal. ### Helix log
~/.cache/helix/helix.log ``` 2023-05-27T19:31:59.413 helix_view::editor [ERROR] editor error: Unsupported theme: theme requires true color support ```
### Platform Ubuntu through WSL on Windows 11 ### Terminal Emulator Alacritty v0.11.0 and Windows Terminal version 1.16.10262.0 ### Helix Version helix 23.05
jquesada2016 commented 1 year ago

Looking at the log attached above, I noticed it says true color support is required, which is strange, because both Alacritty and Windows Terminal support true color...so not sure how to trubleshoot this.

kirawi commented 1 year ago

It's not picked up when running WSL. You can override detection in your config: https://docs.helix-editor.com/configuration.html