JanDeDobbeleer / oh-my-posh

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

Leading/Trailing diamonds color issue on PowerShell Preview #3969

Closed hennievn closed 1 year ago

hennievn commented 1 year ago

Code of Conduct

What happened?

oh-my-posh 17.0 - 17.3.0 The leading and trailing diamonds (using either diamond, or powerline styles) appears to take background color, instead of foreground color. Using the <#xxxxx>/uabcd style to specify forground color and specifyig the diamond symbol directly do not solve this.
I do not see this issue on Debian/GNOME Terminal/bash, only on Powershell/Windows 10. I am using a Preview version of Powershell, V 1.18.1462.0

My theme is based on kushal.omp.json, which is distributed with oh-my-posh. Using the stock kushal theme shows the same issue.

Screenshot 2023-06-15 101656 Screenshot 2023-06-15 101729

Theme

oh-my-posh 17.3.0
Theme: kushal

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 17.3.0

Shell: pwsh (7.3.4)

Segments:

ConsoleTitle(true)                         -   0 ms - pwsh in hvanniekerk
os(true)                                   -   0 ms -  
shell(true)                                -   0 ms -   pwsh
root(false)                                -   0 ms -
cmake(false)                               -   0 ms -
python(true)                               -  28 ms -   default 3.11.4
go(false)                                  -   0 ms -
rust(false)                                -   0 ms -
git(false)                                 -   3 ms -
exit(true)                                 -   1 ms -  
executiontime(true)                        -   0 ms -   0ms
text(true)                                 -   0 ms - ╭─
path(true)                                 -   2 ms -    in  
text(true)                                 -   0 ms - ╰─
exit(true)                                 -   0 ms - ❯

Run duration: 51.2133ms

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

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

Logs:

[DEBUG] 10:27:27.205 shell.go:Getenv:398 → NO DATA
[TRACE] 10:27:27.205 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 10:27:27.205 shell.go:Getenv:398 → C:\Users\hvanniekerk\AppData\Local
[TRACE] 10:27:27.205 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 10:27:27.205 shell_windows.go:CachePath() - 0s
[DEBUG] 10:27:27.209 shell.go:Getenv:398 → C:\Users\hvanniekerk\AppData\Local\Programs\oh-my-posh\themes\hennie.omp.json
[TRACE] 10:27:27.209 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 10:27:27.218 shell.go:Shell:645 → process name: pwsh.exe
[TRACE] 10:27:27.218 shell.go:Shell() - 8.9465ms
[TRACE] 10:27:27.218 shell.go:resolveConfigPath() - 8.9465ms
[TRACE] 10:27:27.218 shell.go:Init() - 13.3899ms
[TRACE] 10:27:27.218 shell.go:Flags() - 0s
[TRACE] 10:27:27.219 config.go:loadConfig() - 1.2682ms
[TRACE] 10:27:27.219 shell.go:Flags() - 0s
[DEBUG] 10:27:27.219 shell.go:Getenv:398 → NO DATA
[TRACE] 10:27:27.219 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 10:27:27.219 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[TRACE] 10:27:27.219 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.219 shell_windows.go:WindowsRegistryKeyValue:206 → ColorizationColor(DWORD): 0xC40078D7
[TRACE] 10:27:27.219 shell.go:Shell() - 0s
[DEBUG] 10:27:27.219 shell.go:Getenv:398 → 7.3.4
[TRACE] 10:27:27.219 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 10:27:27.219 debug.go:PrintDebug:23 → Segment: Title
[TRACE] 10:27:27.220 shell_windows.go:Root() - 0s
[TRACE] 10:27:27.220 shell.go:Shell() - 0s
[TRACE] 10:27:27.220 shell.go:ErrorCode() - 0s
[TRACE] 10:27:27.220 shell_windows.go:IsWsl() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.220 shell.go:Pwd:428 → C:\Users\hvanniekerk
[TRACE] 10:27:27.220 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.220 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.220 shell.go:User:549 → hvanniekerk
[TRACE] 10:27:27.220 shell.go:User() - 0s
[DEBUG] 10:27:27.220 shell.go:Host:561 → ACAR1065
[TRACE] 10:27:27.220 shell.go:Host() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.220 shell.go:Getenv:398 → NO DATA
[TRACE] 10:27:27.220 shell.go:Getenv(SHLVL) - 0s
[TRACE] 10:27:27.220 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.220 shell.go:Flags() - 0s
[DEBUG] 10:27:27.220 block.go:Debug:280 → Segment: os
[TRACE] 10:27:27.220 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.220 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.220 properties.go:GetString:28 → 
[TRACE] 10:27:27.220 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.220 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.220 shell.go:Shell() - 0s
[DEBUG] 10:27:27.220 block.go:Debug:280 → Segment: shell
[TRACE] 10:27:27.220 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.220 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.220 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[]
[TRACE] 10:27:27.220 shell.go:Shell() - 0s
[TRACE] 10:27:27.220 shell.go:Flags() - 0s
[TRACE] 10:27:27.220 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.220 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.220 shell.go:Shell() - 0s
[DEBUG] 10:27:27.220 block.go:Debug:280 → Segment: root
[TRACE] 10:27:27.220 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.220 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[TRACE] 10:27:27.220 shell_windows.go:Root() - 0s
[DEBUG] 10:27:27.220 block.go:Debug:280 → Segment: cmake
[TRACE] 10:27:27.220 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.220 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.220 properties.go:GetStringArray:52 → extensions: [*.cmake CMakeLists.txt]
[DEBUG] 10:27:27.220 properties.go:GetStringArray:52 → folders: []
[DEBUG] 10:27:27.220 properties.go:GetBool:22 → home_enabled: false
[TRACE] 10:27:27.220 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.220 shell_windows.go:56 → C:\Users\hvanniekerk
[DEBUG] 10:27:27.220 block.go:Debug:280 → Segment: python
[DEBUG] 10:27:27.220 properties.go:GetString:28 → context
[TRACE] 10:27:27.220 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.220 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.220 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.220 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 10:27:27.220 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[DEBUG] 10:27:27.220 properties.go:GetBool:22 → home_enabled: true
[TRACE] 10:27:27.220 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.220 shell_windows.go:56 → C:\Users\hvanniekerk
[DEBUG] 10:27:27.220 properties.go:GetBool:22 → fetch_virtual_env: true
[DEBUG] 10:27:27.220 shell.go:CommandPath:600 → C:\Users\hvanniekerk\AppData\Local\mambaforge\envs\default\python.exe
[TRACE] 10:27:27.220 shell.go:CommandPath(python) - 0s
[DEBUG] 10:27:27.221 shell.go:HasFilesInDir:464 → false
[TRACE] 10:27:27.221 shell.go:HasFilesInDir(pyvenv.cfg) - 897.2µs
[DEBUG] 10:27:27.221 shell.go:HasFilesInDir:464 → false
[TRACE] 10:27:27.221 shell.go:HasFilesInDir(pyvenv.cfg) - 0s
[DEBUG] 10:27:27.221 shell.go:Getenv:398 → NO DATA
[TRACE] 10:27:27.221 shell.go:Getenv(VIRTUAL_ENV) - 0s
[DEBUG] 10:27:27.221 shell.go:Getenv:398 → NO DATA
[TRACE] 10:27:27.221 shell.go:Getenv(CONDA_ENV_PATH) - 0s
[DEBUG] 10:27:27.221 shell.go:Getenv:398 → default
[TRACE] 10:27:27.221 shell.go:Getenv(CONDA_DEFAULT_ENV) - 0s
[TRACE] 10:27:27.221 shell.go:GOOS() - 0s
[TRACE] 10:27:27.221 shell.go:GOOS() - 0s
[TRACE] 10:27:27.221 shell.go:GOOS() - 0s
[TRACE] 10:27:27.221 shell.go:GOOS() - 0s
[TRACE] 10:27:27.221 shell.go:GOOS() - 0s
[TRACE] 10:27:27.221 shell.go:GOOS() - 0s
[TRACE] 10:27:27.221 shell.go:GOOS() - 0s
[TRACE] 10:27:27.221 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.221 properties.go:GetBool:22 → display_default: true
[TRACE] 10:27:27.221 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.221 shell.go:HasFiles:450 → false
[TRACE] 10:27:27.221 shell.go:HasFiles(*.py) - 0s
[TRACE] 10:27:27.221 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.221 shell.go:HasFiles:450 → false
[TRACE] 10:27:27.221 shell.go:HasFiles(*.ipynb) - 0s
[TRACE] 10:27:27.221 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.221 shell.go:HasFiles:450 → false
[TRACE] 10:27:27.221 shell.go:HasFiles(pyproject.toml) - 0s
[TRACE] 10:27:27.221 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.221 shell.go:HasFiles:450 → false
[TRACE] 10:27:27.221 shell.go:HasFiles(venv.bak) - 0s
[DEBUG] 10:27:27.221 shell.go:HasFolder:493 → false
[TRACE] 10:27:27.221 shell.go:HasFolder(.venv) - 0s
[DEBUG] 10:27:27.221 shell.go:HasFolder:493 → false
[TRACE] 10:27:27.221 shell.go:HasFolder(venv) - 0s
[DEBUG] 10:27:27.221 shell.go:HasFolder:493 → false
[TRACE] 10:27:27.221 shell.go:HasFolder(virtualenv) - 0s
[DEBUG] 10:27:27.222 shell.go:HasFolder:493 → false
[TRACE] 10:27:27.222 shell.go:HasFolder(env) - 998.8µs
[DEBUG] 10:27:27.222 shell.go:HasFolder:493 → false
[TRACE] 10:27:27.222 shell.go:HasFolder(venv-win) - 0s
[DEBUG] 10:27:27.222 shell.go:HasFolder:493 → false
[TRACE] 10:27:27.222 shell.go:HasFolder(pyenv-win) - 0s
[DEBUG] 10:27:27.222 properties.go:GetBool:22 → fetch_version: true
[DEBUG] 10:27:27.222 shell.go:CommandPath:594 → C:\Users\hvanniekerk\AppData\Local\mambaforge\envs\default\python.exe
[TRACE] 10:27:27.222 shell.go:CommandPath(python) - 0s
[DEBUG] 10:27:27.222 shell.go:Getenv:398 → NO DATA
[TRACE] 10:27:27.222 shell.go:Getenv(PYENV_ROOT) - 0s
[DEBUG] 10:27:27.222 shell.go:CommandPath:594 → C:\Users\hvanniekerk\AppData\Local\mambaforge\envs\default\python.exe
[TRACE] 10:27:27.222 shell.go:CommandPath(python) - 0s
[TRACE] 10:27:27.222 shell.go:HasCommand(python) - 0s
[DEBUG] 10:27:27.248 shell.go:RunCommand:579 → Python 3.11.4
[TRACE] 10:27:27.248 shell.go:RunCommand(python --version) - 25.6286ms
[DEBUG] 10:27:27.248 properties.go:GetString:28 → https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}
[TRACE] 10:27:27.248 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.248 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.249 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.249 shell.go:Shell() - 0s
[DEBUG] 10:27:27.249 block.go:Debug:280 → Segment: go
[TRACE] 10:27:27.249 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.249 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.249 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.249 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[DEBUG] 10:27:27.249 properties.go:GetStringArray:52 → folders: []
[DEBUG] 10:27:27.249 properties.go:GetBool:22 → home_enabled: false
[TRACE] 10:27:27.249 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.249 shell_windows.go:56 → C:\Users\hvanniekerk
[DEBUG] 10:27:27.249 block.go:Debug:280 → Segment: rust
[TRACE] 10:27:27.249 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.249 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.249 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.249 properties.go:GetStringArray:52 → extensions: [*.rs Cargo.toml Cargo.lock]
[DEBUG] 10:27:27.249 properties.go:GetStringArray:52 → folders: []
[DEBUG] 10:27:27.249 properties.go:GetBool:22 → home_enabled: false
[TRACE] 10:27:27.249 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.249 shell_windows.go:56 → C:\Users\hvanniekerk
[DEBUG] 10:27:27.249 block.go:Debug:280 → Segment: git
[TRACE] 10:27:27.249 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.249 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.249 shell.go:GOOS() - 0s
[TRACE] 10:27:27.249 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.251 shell.go:CommandPath:600 → C:\Users\hvanniekerk\AppData\Local\mambaforge\envs\default\Library\bin\git.exe
[TRACE] 10:27:27.251 shell.go:CommandPath(git.exe) - 2.5703ms
[TRACE] 10:27:27.251 shell.go:HasCommand(git.exe) - 2.5703ms
[TRACE] 10:27:27.251 shell.go:Pwd() - 0s
[ERROR] 10:27:27.252 shell.go:HasParentFilePath:733 → CreateFile .git: The system cannot find the file specified.
[TRACE] 10:27:27.252 shell.go:HasParentFilePath(.git) - 639.6µs
[DEBUG] 10:27:27.252 properties.go:GetBool:22 → fetch_bare_info: false
[TRACE] 10:27:27.252 shell.go:Flags() - 0s
[DEBUG] 10:27:27.252 block.go:Debug:280 → Segment: exit
[TRACE] 10:27:27.252 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.252 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.252 shell.go:GOOS() - 0s
[TRACE] 10:27:27.252 shell.go:ErrorCode() - 0s
[DEBUG] 10:27:27.252 properties.go:GetBool:22 → always_enabled: true
[TRACE] 10:27:27.252 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.253 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.253 shell.go:Shell() - 0s
[TRACE] 10:27:27.253 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.253 shell.go:TemplateCache() - 0s
[DEBUG] 10:27:27.253 block.go:Debug:280 → Segment: executiontime
[TRACE] 10:27:27.253 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.253 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.253 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.253 properties.go:GetBool:22 → always_enabled: false
[TRACE] 10:27:27.253 shell.go:ExecutionTime() - 0s
[DEBUG] 10:27:27.253 properties.go:GetFloat64:34 → threshold: 0.000000
[DEBUG] 10:27:27.253 properties.go:GetString:28 → roundrock
[TRACE] 10:27:27.253 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.253 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.253 shell.go:Shell() - 0s
[TRACE] 10:27:27.253 shell.go:Flags() - 0s
[DEBUG] 10:27:27.253 block.go:Debug:280 → Segment: text
[TRACE] 10:27:27.253 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.253 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.253 shell.go:GOOS() - 0s
[TRACE] 10:27:27.253 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.253 shell.go:Shell() - 0s
[DEBUG] 10:27:27.253 block.go:Debug:280 → Segment: path
[TRACE] 10:27:27.254 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.254 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:Pwd() - 0s
[TRACE] 10:27:27.254 shell.go:Shell() - 0s
[TRACE] 10:27:27.254 shell.go:Flags() - 0s
[DEBUG] 10:27:27.254 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 10:27:27.254 properties.go:GetString:28 → 
[DEBUG] 10:27:27.254 properties.go:GetString:28 → 
[DEBUG] 10:27:27.254 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[DEBUG] 10:27:27.254 properties.go:GetString:28 → 
[DEBUG] 10:27:27.254 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 10:27:27.254 shell.go:PathSeparator() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:PathSeparator() - 0s
[TRACE] 10:27:27.254 shell.go:PathSeparator() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:PathSeparator() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:PathSeparator() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:GOOS() - 0s
[TRACE] 10:27:27.254 shell.go:PathSeparator() - 0s
[TRACE] 10:27:27.254 shell.go:Pwd() - 0s
[TRACE] 10:27:27.254 shell_windows.go:IsWsl() - 0s
[TRACE] 10:27:27.254 shell.go:StackCount() - 0s
[DEBUG] 10:27:27.255 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:27:27.255 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:27:27.255 win32_windows.go:isWriteable:303 → current user is member of S-1-5-21-2092816234-1319612991-2732962379-22306
[DEBUG] 10:27:27.255 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 10:27:27.255 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 10:27:27.255 shell_windows.go:DirIsWritable() - 1.1026ms
[TRACE] 10:27:27.255 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.256 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.256 shell.go:Shell() - 0s
[TRACE] 10:27:27.256 shell.go:Flags() - 0s
[DEBUG] 10:27:27.256 block.go:Debug:280 → Segment: text
[TRACE] 10:27:27.256 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.256 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.256 shell.go:GOOS() - 0s
[TRACE] 10:27:27.256 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.256 shell.go:Shell() - 0s
[DEBUG] 10:27:27.256 block.go:Debug:280 → Segment: exit
[TRACE] 10:27:27.256 shell.go:Pwd() - 0s
[DEBUG] 10:27:27.256 shell_windows.go:56 → C:\Users\hvanniekerk
[TRACE] 10:27:27.256 shell.go:GOOS() - 0s
[TRACE] 10:27:27.256 shell.go:ErrorCode() - 0s
[DEBUG] 10:27:27.256 properties.go:GetBool:22 → always_enabled: true
[TRACE] 10:27:27.256 shell.go:TemplateCache() - 0s
[TRACE] 10:27:27.256 shell.go:Shell() - 0s
[DEBUG] 10:27:27.256 shell.go:Getenv:398 → C:\Users\hvanniekerk\AppData\Local
[TRACE] 10:27:27.256 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 10:27:27.256 shell_windows.go:CachePath() - 0s
[TRACE] 10:27:27.256 shell.go:Flags() - 0s
JanDeDobbeleer commented 1 year ago

@hennievn latest Windows Terminal preview, running latest oh-my-posh:

image

iTerm2 on macOS:

image

This is a terminal bug/renderer/configuration issue.

hennievn commented 1 year ago

Yes, after seeing your comment I cycled through a few Powershell Color schemes. This did not fix the issue, but then after closing and re-opening Powershell the issue was fixed. Looks like a pwshl color scheme configuration that went haywire.

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.