JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.37k stars 2.38k forks source link

[Windows Terminal]: The theme icon display is incomplete #2279

Closed WhiteByeBye closed 2 years ago

WhiteByeBye commented 2 years ago

Code of Conduct

What happened?

When I used the Space theme in the Windows Terminal, the icon display was incomplete. For example:

image

The icons of Windows, Python, and Node are incomplete. They're missing some part of the right side.

Theme

Space

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 7.85.0

Segments:

ConsoleTitle(false) -   0 ms -
os(true)       -   0 ms - 
session(true)  -   0 ms -  rxxu:
path(true)     -   0 ms - System32
git(false)     -  18 ms -
python(true)   -  22 ms - [ base 3.9.12]
go(false)      -   5 ms -
node(true)     - 113 ms - [ 18.1.0]
ruby(false)    -   5 ms -
java(false)    -  46 ms -
julia(false)   -   5 ms -
text(true)     -   1 ms - ❯

Run duration: 243.3416ms

Cache path: C:\Users\rxxu\AppData\Local\oh-my-posh

Config path: C:\Users\rxxu\AppData\Local\Programs\oh-my-posh\themes\space.omp.json

Logs:

2022/05/17 00:15:30 debug: Getenv
C:\Users\rxxu\AppData\Local
2022/05/17 00:15:30 Getenv duration: 0s, args: LOCALAPPDATA
2022/05/17 00:15:30 CachePath duration: 0s, args:
2022/05/17 00:15:30 debug: Getenv
C:\Users\rxxu\AppData\Local\Programs\oh-my-posh\themes\space.omp.json
2022/05/17 00:15:30 Getenv duration: 0s, args: POSH_THEME
2022/05/17 00:15:30 Shell duration: 20.3653ms, args:
2022/05/17 00:15:30 resolveConfigPath duration: 20.3653ms, args:
2022/05/17 00:15:30 Init duration: 20.3653ms, args:
2022/05/17 00:15:30 Flags duration: 0s, args:
2022/05/17 00:15:30 config.loadConfig duration: 523.8µs, args:
2022/05/17 00:15:30 Flags duration: 0s, args:
2022/05/17 00:15:30 debug: Getenv

2022/05/17 00:15:30 Getenv duration: 0s, args: OMP_CACHE_DISABLED
2022/05/17 00:15:30 Root duration: 0s, args:
2022/05/17 00:15:30 Shell duration: 0s, args:
2022/05/17 00:15:30 ErrorCode duration: 0s, args:
2022/05/17 00:15:30 IsWsl duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: User
rxxu
2022/05/17 00:15:30 User duration: 0s, args:
2022/05/17 00:15:30 debug: Host
MECHREVO
2022/05/17 00:15:30 Host duration: 0s, args:
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 Flags duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 Shell duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 debug: Getenv

2022/05/17 00:15:30 Getenv duration: 0s, args: SSH_CONNECTION
2022/05/17 00:15:30 debug: Getenv

2022/05/17 00:15:30 Getenv duration: 0s, args: SSH_CLIENT
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 Shell duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 Flags duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 IsWsl duration: 0s, args:
2022/05/17 00:15:30 StackCount duration: 0s, args:
2022/05/17 00:15:30 DirIsWritable duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 Shell duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 HasCommand duration: 17.8029ms, args: git.exe
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 error: HasParentFilePath
CreateFile C:\.git: The system cannot find the file specified.
2022/05/17 00:15:30 HasParentFilePath duration: 532.9µs, args: .git
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 debug: Getenv

2022/05/17 00:15:30 Getenv duration: 0s, args: VIRTUAL_ENV
2022/05/17 00:15:30 debug: Getenv

2022/05/17 00:15:30 Getenv duration: 0s, args: CONDA_ENV_PATH
2022/05/17 00:15:30 debug: Getenv
base
2022/05/17 00:15:30 Getenv duration: 0s, args: CONDA_DEFAULT_ENV
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 HasCommand duration: 524.6µs, args: python
2022/05/17 00:15:30 debug: Getenv

2022/05/17 00:15:30 Getenv duration: 0s, args: PYENV_ROOT
2022/05/17 00:15:30 HasCommand duration: 0s, args: python
2022/05/17 00:15:30 debug: RunCommand
Python 3.9.12
2022/05/17 00:15:30 RunCommand duration: 20.3086ms, args: python --version
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 Shell duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 5.8441ms, args: *.go
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: go.mod
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 4.7231ms, args: *.js
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 8.2426ms, args: *.ts
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
true
2022/05/17 00:15:30 HasFiles duration: 0s, args: package.json
2022/05/17 00:15:30 HasCommand duration: 15.2298ms, args: node
2022/05/17 00:15:30 debug: RunCommand
v18.1.0
2022/05/17 00:15:30 RunCommand duration: 84.7979ms, args: node --version
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 error: FileContent
open C:\Windows\System32\.nvmrc: The system cannot find the file specified.
2022/05/17 00:15:30 FileContent duration: 0s, args: .nvmrc
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 Shell duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 5.9849ms, args: *.rb
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: Rakefile
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: Gemfile
2022/05/17 00:15:30 debug: Getenv

2022/05/17 00:15:30 Getenv duration: 0s, args: JAVA_HOME
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 578.4µs, args: pom.xml
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: build.gradle.kts
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: build.sbt
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: .java-version
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: .deps.edn
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: project.clj
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 0s, args: build.boot
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 9.4152ms, args: *.java
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 7.9212ms, args: *.class
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 6.8857ms, args: *.gradle
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 8.0457ms, args: *.jar
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 6.297ms, args: *.clj
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 7.7004ms, args: *.cljc
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 PathSeparator duration: 0s, args:
2022/05/17 00:15:30 debug: HasFiles
false
2022/05/17 00:15:30 HasFiles duration: 5.4325ms, args: *.jl
2022/05/17 00:15:30 debug: Pwd
C:\Windows\System32
2022/05/17 00:15:30 Pwd duration: 0s, args:
2022/05/17 00:15:30 debug: Home
C:\Users\rxxu
2022/05/17 00:15:30 GOOS duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 TemplateCache duration: 0s, args:
2022/05/17 00:15:30 Shell duration: 0s, args:
2022/05/17 00:15:30 debug: Getenv
C:\Users\rxxu\AppData\Local
2022/05/17 00:15:30 Getenv duration: 0s, args: LOCALAPPDATA
2022/05/17 00:15:30 CachePath duration: 0s, args:
2022/05/17 00:15:30 Flags duration: 0s, args:
GrinGrin commented 2 years ago

Hi, Have a similar issue sometimes but it does not seems to be an OMP issue, but more of a Windows Terminal's rendering one.

Actually there is an issue for "cut-off" text with bold/italic text (not sure it is really corrected as bugs may come back with another modification).

Using another terminal does not present the same issue: image

On top the latest (non preview) Windows Terminal on Win11, bottom is Alacritty. Same issue with Putty (but worst) that is well known for not correctly handling variable-width unicode fonts, event in latest builds ...

Sometime, just adding an extra space after the glyph can help but it may not render nice with some themes :-(

JanDeDobbeleer commented 2 years ago

This is a terminal issue. Not something oh-my-posh can fix. You can find more context here.

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.