JanDeDobbeleer / oh-my-posh

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

Although I install the "MesloLGM Nerd Font", it still show unsupported character. #5052

Closed 1298345095 closed 1 month ago

1298345095 commented 1 month ago

Code of Conduct

What happened?

A bug happened!

Theme

Chips abc

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 21.3.0

Shell: pwsh (7.4.2)

Prompt:

 ~                                                                                         21:32 (06/11) ~  88%
# Root ❯

Segments:

ConsoleTitle(true)                         -   0 ms
Path(true)                                 -   1 ms
Git(false)                                 -   8 ms
Executiontime(false)                       -   0 ms
Wakatime(false)                            - 1574 ms
Time(true)                                 -   0 ms
Battery(true)                              -   2 ms
Session(false)                             -   0 ms
Text(true)                                 -   0 ms
Crystal(false)                             -   0 ms
Dart(false)                                -   0 ms
Lua(false)                                 -   0 ms
Node(false)                                -   0 ms
Rust(false)                                -   0 ms
Python(false)                              -   0 ms
Text(true)                                 -   0 ms

Run duration: 1.6061735s

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

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

Logs:

[DEBUG] 21:32:29.539 shell.go:Getenv:326 → NO DATA
[TRACE] 21:32:29.547 shell.go:Getenv(TERM_PROGRAM) - 7.7722ms
[DEBUG] 21:32:29.547 shell.go:Getenv:326 → C:\Users\ctrls\AppData\Local
[TRACE] 21:32:29.547 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 21:32:29.547 shell_windows.go:CachePath() - 0s
[DEBUG] 21:32:29.548 shell.go:Getenv:326 → C:\Users\ctrls\AppData\Local\Programs\oh-my-posh\themes\chips.omp.json
[TRACE] 21:32:29.548 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 21:32:29.548 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 21:32:29.554 shell.go:Shell:609 → process name: pwsh.exe
[TRACE] 21:32:29.554 shell.go:Shell() - 6.1738ms
[TRACE] 21:32:29.554 shell.go:resolveConfigPath() - 6.1738ms
[TRACE] 21:32:29.554 shell.go:Init() - 15.0803ms
[TRACE] 21:32:29.554 shell.go:Flags() - 0s
[TRACE] 21:32:29.556 config.go:loadConfig() - 1.7796ms
[TRACE] 21:32:29.556 shell.go:Flags() - 0s
[DEBUG] 21:32:29.556 shell.go:Getenv:326 → NO DATA
[TRACE] 21:32:29.556 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 21:32:29.556 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[TRACE] 21:32:29.556 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.556 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 21:32:29.556 shell.go:Shell() - 0s
[DEBUG] 21:32:29.556 shell.go:Getenv:326 → 7.4.2
[TRACE] 21:32:29.556 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 21:32:29.556 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 21:32:29.556 text.go:Render:71 → Rendering template: {{ if .Segments.Session.SSHSession }}SSH'd{{ if or .Root }} & {{ end }}{{ end }}{{ if .Root }}# (as {{ .UserName }}) | {{ end }}{{ if .WSL }}WSL | {{ end }}{{ .Folder }} ({{ .Shell }})
[TRACE] 21:32:29.556 shell_windows.go:Root() - 0s
[TRACE] 21:32:29.556 shell.go:Shell() - 0s
[TRACE] 21:32:29.556 shell.go:StatusCodes() - 0s
[TRACE] 21:32:29.556 shell_windows.go:IsWsl() - 0s
[DEBUG] 21:32:29.556 shell.go:TemplateCache:782 → environment: [ACSetupSvcPort=23210 ACSvcPort=17532 ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\ctrls\AppData\Roaming asl.log=Destination=file CARGO_HOME=G:\cargo CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=LAPTOP-9D2IN3NL ComSpec=C:\Windows\system32\cmd.exe CONDA_PROMPT_MODIFIER=False CUDA_PATH=D:\CUDA\v12.1 CUDA_PATH_V12_1=D:\CUDA\v12.1 DriverData=C:\Windows\System32\Drivers\DriverData EnableLog=INFO HOMEDRIVE=C: HOMEPATH=\Users\ctrls IGCCSVC_DB=AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAATBGXLdu9HECm2eFcjbHx8QQAAAACAAAAAAAQZgAAAAEAACAAAABt+4b4B/WChhw9DH0C11AtamwSZaW3Td15/yBNRUHWGgAAAAAOgAAAAAIAACAAAABWVa5AU00wwRzelcVfFDw2ntu0f6axYz66JeQ0gsOfFWAAAAA91fZDBQLavoM+ilfT8OnupCvnbr1ec9jDYoc/unml89boqWmDfnntRNs68fn2UOetuclbgUvB8EsqYu0ce6FO8UN5S9YWNi+dd2LqyTzzkZBr9D6aZdKB1PRZf28gKmtAAAAACnd2z6gnDXpGpgb0vJNFq7FA1Be5/1wlbVtUutARZkANV2PRqHFiWa3embG2HjzhNdTRv2vyfcHR9v6wE7VR6g== LANG=zh_CN.UTF-8 LESSCHARSET=utf-8 LOCALAPPDATA=C:\Users\ctrls\AppData\Local LOGONSERVER=\\LAPTOP-9D2IN3NL NUMBER_OF_PROCESSORS=20 OneDrive=C:\Users\ctrls\OneDrive OneDriveConsumer=C:\Users\ctrls\OneDrive OS=Windows_NT Path=C:\Program Files\PowerShell\7;G:\python312\Scripts\;G:\python312\;D:\CUDA\v12.1\bin;D:\CUDA\v12.1\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;D:\Git\cmd;D:\MATLAB\R2024a\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Wolfram Research\WolframScript\;D:\ffmpeg\;G:\cargo\bin;G:\mingw64;C:\Program Files\PowerShell\7\;C:\Program Files\Docker\Docker\resources\bin;C:\Users\ctrls\scoop\apps\gsudo\current;C:\Users\ctrls\scoop\shims;C:\Users\ctrls\AppData\Local\Microsoft\WindowsApps;C:\Users\ctrls\AppData\Local\JetBrains\Toolbox\scripts;D:\Microsoft VS Code\bin;C:\Users\ctrls\.dotnet\tools;C:\Users\ctrls\AppData\Local\Programs\oh-my-posh\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.CPL POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=29 POSH_GIT_ENABLED=False POSH_INSTALLER=winget POSH_PID=24748 POSH_SHELL_VERSION=7.4.2 POSH_THEME=C:\Users\ctrls\AppData\Local\Programs\oh-my-posh\themes\chips.omp.json POSH_THEMES_PATH=C:\Users\ctrls\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Enterprise POWERSHELL_TELEMETRY_OPTOUT=1 PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 186 Stepping 2, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=ba02 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\ctrls\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Users\ctrls\scoop\modules;C:\Users\ctrls\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public RlsSvcPort=22112 SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\ctrls\AppData\Local\Temp TMP=C:\Users\ctrls\AppData\Local\Temp USERDOMAIN=LAPTOP-9D2IN3NL USERDOMAIN_ROAMINGPROFILE=LAPTOP-9D2IN3NL USERNAME=ctrls USERPROFILE=C:\Users\ctrls windir=C:\Windows WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336} WT_SESSION=e9cff735-afec-4c8f-bccb-f3d9a3779dae ZES_ENABLE_SYSMAN=1]
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.557 shell.go:Pwd:356 → C:\Users\ctrls
[TRACE] 21:32:29.557 shell.go:Pwd() - 0s
[DEBUG] 21:32:29.557 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.557 shell.go:User:494 → ctrls
[TRACE] 21:32:29.557 shell.go:User() - 0s
[DEBUG] 21:32:29.557 shell.go:Host:511 → LAPTOP-9D2IN3NL
[TRACE] 21:32:29.557 shell.go:Host() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.557 shell.go:Getenv:326 → NO DATA
[TRACE] 21:32:29.557 shell.go:Getenv(SHLVL) - 0s
[TRACE] 21:32:29.557 shell.go:TemplateCache() - 534µs
[DEBUG] 21:32:29.557 shell.go:Getenv:326 → 29
[TRACE] 21:32:29.557 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 21:32:29.557 shell.go:Getenv:326 → 1
[TRACE] 21:32:29.557 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 21:32:29.557 shell.go:Flags() - 0s
[TRACE] 21:32:29.557 shell.go:Flags() - 0s
[TRACE] 21:32:29.557 shell.go:Shell() - 0s
[TRACE] 21:32:29.557 shell.go:Shell() - 0s
[TRACE] 21:32:29.557 shell.go:Flags() - 0s
[TRACE] 21:32:29.557 shell.go:Flags() - 0s
[TRACE] 21:32:29.557 shell.go:Pwd() - 0s
[DEBUG] 21:32:29.557 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:29.557 shell.go:Pwd() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.557 segment.go:SetEnabled:533 → Segment: Git
[DEBUG] 21:32:29.557 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.557 segment.go:SetEnabled:533 → Segment: Path
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.557 shell.go:Getenv:326 → C:\Users\ctrls\AppData\Local
[TRACE] 21:32:29.557 shell.go:Pwd() - 0s
[TRACE] 21:32:29.557 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 21:32:29.557 shell.go:Shell() - 0s
[TRACE] 21:32:29.557 shell.go:Flags() - 0s
[DEBUG] 21:32:29.557 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 21:32:29.557 properties.go:GetString:28 → 
[DEBUG] 21:32:29.557 properties.go:GetString:28 → 
[DEBUG] 21:32:29.557 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.557 properties.go:GetString:28 → ~
[DEBUG] 21:32:29.557 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 21:32:29.557 shell.go:PathSeparator() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:PathSeparator() - 0s
[TRACE] 21:32:29.557 shell.go:PathSeparator() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:PathSeparator() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:PathSeparator() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:GOOS() - 0s
[TRACE] 21:32:29.557 shell.go:PathSeparator() - 0s
[DEBUG] 21:32:29.557 properties.go:GetString:28 → NO DATA
[DEBUG] 21:32:29.557 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:29.557 shell.go:PathSeparator() - 0s
[TRACE] 21:32:29.557 shell.go:Pwd() - 0s
[TRACE] 21:32:29.557 shell_windows.go:IsWsl() - 0s
[TRACE] 21:32:29.557 shell.go:StackCount() - 0s
[DEBUG] 21:32:29.557 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 21:32:29.558 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 21:32:29.558 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 21:32:29.558 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 21:32:29.558 shell_windows.go:DirIsWritable() - 1.062ms
[TRACE] 21:32:29.558 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:29.566 shell.go:CommandPath:553 → D:\Git\cmd\git.exe
[TRACE] 21:32:29.566 shell.go:CommandPath(git.exe) - 8.9056ms
[TRACE] 21:32:29.566 shell.go:HasCommand(git.exe) - 8.9056ms
[TRACE] 21:32:29.566 shell.go:Pwd() - 0s
[ERROR] 21:32:29.566 shell.go:HasParentFilePath:697 → CreateFile .git: The system cannot find the file specified.
[TRACE] 21:32:29.566 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 21:32:29.566 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 21:32:29.566 text.go:Render:71 → Rendering template:  {{ .Path }}
[TRACE] 21:32:29.566 shell.go:TemplateCache() - 0s
[TRACE] 21:32:29.566 shell.go:Shell() - 0s
[DEBUG] 21:32:29.566 text.go:Render:71 → Rendering template: {{ if not (empty .Env.OVERRIDE_FOLDER_BADGE_BG) }}{{ .Env.OVERRIDE_FOLDER_BADGE_BG }}{{ else }}p:c-badge-folder{{ end }}
[TRACE] 21:32:29.566 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:29.566 text.go:Render:71 → Rendering template: {{ if not (empty .Env.OVERRIDE_FOLDER_BADGE_FG) }}{{ .Env.OVERRIDE_FOLDER_BADGE_FG }}{{ else }}p:c-badge-text{{ end }}
[TRACE] 21:32:29.566 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:29.566 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:29.566 text.go:Render:71 → Rendering template: diamond
[TRACE] 21:32:29.566 shell.go:Shell() - 0s
[TRACE] 21:32:29.566 shell.go:Shell() - 0s
[TRACE] 21:32:29.566 shell.go:Shell() - 0s
[TRACE] 21:32:29.566 shell.go:Flags() - 0s
[TRACE] 21:32:29.566 shell.go:Pwd() - 0s
[DEBUG] 21:32:29.566 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:29.566 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.566 segment.go:SetEnabled:533 → Segment: Battery
[TRACE] 21:32:29.566 shell_windows.go:IsWsl() - 0s
[TRACE] 21:32:29.566 shell.go:Flags() - 0s
[TRACE] 21:32:29.566 shell.go:Flags() - 0s
[TRACE] 21:32:29.566 shell.go:Pwd() - 0s
[TRACE] 21:32:29.566 shell.go:Pwd() - 0s
[DEBUG] 21:32:29.566 shell_windows.go:58 → C:\Users\ctrls
[DEBUG] 21:32:29.566 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:29.566 shell.go:GOOS() - 0s
[TRACE] 21:32:29.566 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.566 segment.go:SetEnabled:533 → Segment: Time
[DEBUG] 21:32:29.566 segment.go:SetEnabled:533 → Segment: Wakatime
[DEBUG] 21:32:29.566 properties.go:GetString:28 → 15:04 (01/02)
[TRACE] 21:32:29.566 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:29.566 properties.go:GetString:28 → https://wakatime.com/api/v1/users/current/summaries?start=today&end=today&api_key={{ .Env.WAKATIME_API_KEY }}
[TRACE] 21:32:29.566 shell.go:Flags() - 0s
[DEBUG] 21:32:29.566 text.go:Render:71 → Rendering template: https://wakatime.com/api/v1/users/current/summaries?start=today&end=today&api_key={{ .Env.WAKATIME_API_KEY }}
[TRACE] 21:32:29.566 shell.go:Pwd() - 0s
[DEBUG] 21:32:29.566 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:29.566 shell.go:GOOS() - 0s
[DEBUG] 21:32:29.566 segment.go:SetEnabled:533 → Segment: Executiontime
[DEBUG] 21:32:29.566 properties.go:GetBool:22 → always_enabled: false
[TRACE] 21:32:29.566 shell.go:ExecutionTime() - 0s
[DEBUG] 21:32:29.566 properties.go:GetFloat64:34 → threshold: 1.000000
[TRACE] 21:32:29.567 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:29.567 properties.go:GetInt:40 → cache_timeout: 5
[DEBUG] 21:32:29.567 properties.go:GetInt:40 → http_timeout: 2000
[DEBUG] 21:32:29.567 shell.go:HTTPRequest:653 ↓
    GET /api/v1/users/current/summaries?start=today&end=today&api_key= HTTP/1.1
    Host: wakatime.com
    User-Agent: Go-http-client/1.1
    Accept-Encoding: gzip

[TRACE] 21:32:29.569 shell_windows_nix.go:BatteryState() - 2.739ms
[DEBUG] 21:32:29.569 properties.go:GetString:28 → NO DATA
[TRACE] 21:32:29.569 shell.go:TemplateCache() - 0s
[ERROR] 21:32:31.141 shell.go:HTTPRequest:664 → HTTP status code 401
[TRACE] 21:32:31.141 shell.go:HTTPRequest(https://wakatime.com/api/v1/users/current/summaries?start=today&end=today&api_key=) - 1.5738207s
[DEBUG] 21:32:31.141 text.go:Render:71 → Rendering template: {{ if eq "True" (title (default "False" .Env.DISABLE_SEGMENT_BATTERY)) }}{{ else }}{{ if not .Error }}{{ if eq "Charging" .State.String }} {{ else if eq "Discharging" .State.String }}{{ else if eq "Full" .State.String }}~ {{ else }}? {{ end }}{{ if le .Percentage 15 }}{{ else if and (ge .Percentage 16) (le .Percentage 30) }}{{ else if and (ge .Percentage 31) (le .Percentage 45) }}{{ else if and (ge .Percentage 46) (le .Percentage 55)}}{{ else if and (ge .Percentage 56) (le .Percentage 70) }}{{ else if and (ge .Percentage 71) (le .Percentage 80) }}{{ else if and (ge .Percentage 81) (le .Percentage 95) }}{{ else }}{{ end }} {{ .Percentage }}%{{ else }}!{{ end }}{{ end }}
[DEBUG] 21:32:31.141 text.go:Render:71 → Rendering template: {{ if eq "False" (title (default "False" .Env.DISABLE_SEGMENT_DTIME)) }} {{ .CurrentDate | date .Format }}{{ end }}
[TRACE] 21:32:31.141 shell.go:TemplateCache() - 0s
[TRACE] 21:32:31.141 shell.go:TemplateCache() - 0s
[TRACE] 21:32:31.141 shell.go:Shell() - 0s
[TRACE] 21:32:31.141 shell.go:Shell() - 0s
[DEBUG] 21:32:31.141 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.141 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.141 text.go:Render:71 → Rendering template: {{ if regexMatch "(^(0[6-9])|(1[0-1])):" (.CurrentDate | date .Format) }}p:c-date-time-morning{{ end }}
[TRACE] 21:32:31.142 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.142 text.go:Render:71 → Rendering template: {{ if regexMatch ("(^1[2-4]):") (.CurrentDate | date .Format) }}p:c-date-time-noon{{ end }}
[TRACE] 21:32:31.142 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.142 text.go:Render:71 → Rendering template: {{ if regexMatch ("(^1[5-7]):") (.CurrentDate | date .Format) }}p:c-date-time-afternoon{{ end }}
[TRACE] 21:32:31.143 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.143 text.go:Render:71 → Rendering template: {{ if regexMatch "(^(1[8-9])|(2[0-3])):" (.CurrentDate | date .Format) }}p:c-date-time-evening{{ end }}
[TRACE] 21:32:31.143 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.143 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.143 text.go:Render:71 → Rendering template: {{ if .Error }}p:c-battery-state-error{{ end }}
[TRACE] 21:32:31.144 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.144 text.go:Render:71 → Rendering template: {{ if le .Percentage 15 }}p:c-battery-15-less{{ end }}
[TRACE] 21:32:31.144 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.144 text.go:Render:71 → Rendering template: {{ if and (ge .Percentage 16) (le .Percentage 30) }}p:c-battery-30-less{{ end }}
[TRACE] 21:32:31.144 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.144 text.go:Render:71 → Rendering template: {{ if and (ge .Percentage 31) (le .Percentage 45) }}p:c-battery-45-less{{ end }}
[TRACE] 21:32:31.144 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.144 text.go:Render:71 → Rendering template: {{ if and (ge .Percentage 46) (le .Percentage 55) }}p:c-battery-55-less{{ end }}
[TRACE] 21:32:31.144 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.144 text.go:Render:71 → Rendering template: {{ if and (ge .Percentage 56) (le .Percentage 70) }}p:c-battery-70-less{{ end }}
[TRACE] 21:32:31.144 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.144 text.go:Render:71 → Rendering template: {{ if and (ge .Percentage 71) (le .Percentage 90) }}p:c-battery-90-less{{ end }}
[TRACE] 21:32:31.144 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.144 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.144 shell_windows.go:TerminalWidth:111 → terminal width: 120
[TRACE] 21:32:31.144 shell_windows.go:TerminalWidth() - 0s
[TRACE] 21:32:31.144 shell.go:Shell() - 0s
[TRACE] 21:32:31.144 shell.go:Shell() - 0s
[TRACE] 21:32:31.144 shell.go:Shell() - 0s
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Text
[TRACE] 21:32:31.145 shell.go:TemplateCache() - 0s
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Dart
[DEBUG] 21:32:31.145 properties.go:GetString:28 → lua
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Lua
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → extensions: [*.dart pubspec.yaml pubspec.yml pubspec.lock]
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → folders: [.dart_tool]
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → extensions: [*.lua *.rockspec]
[DEBUG] 21:32:31.145 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → folders: [lua]
[DEBUG] 21:32:31.145 properties.go:GetBool:22 → home_enabled: false
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[DEBUG] 21:32:31.145 properties.go:GetString:28 → context
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Session
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Rust
[DEBUG] 21:32:31.145 shell.go:Getenv:326 → NO DATA
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[TRACE] 21:32:31.145 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[DEBUG] 21:32:31.145 shell.go:Getenv:326 → NO DATA
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → extensions: [*.rs Cargo.toml Cargo.lock]
[TRACE] 21:32:31.145 shell.go:Getenv(SSH_CLIENT) - 0s
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Python
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → folders: []
[TRACE] 21:32:31.145 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 21:32:31.145 properties.go:GetBool:22 → home_enabled: false
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[DEBUG] 21:32:31.145 properties.go:GetBool:22 → home_enabled: false
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Text
[TRACE] 21:32:31.145 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:31.145 shell.go:Flags() - 0s
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Node
[TRACE] 21:32:31.145 shell.go:GOOS() - 0s
[DEBUG] 21:32:31.145 segment.go:SetEnabled:533 → Segment: Crystal
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → extensions: [*.cr shard.yml]
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → folders: []
[DEBUG] 21:32:31.145 properties.go:GetBool:22 → home_enabled: false
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 21:32:31.145 properties.go:GetStringArray:52 → folders: []
[DEBUG] 21:32:31.145 properties.go:GetBool:22 → home_enabled: false
[TRACE] 21:32:31.145 shell.go:Pwd() - 0s
[DEBUG] 21:32:31.145 shell_windows.go:58 → C:\Users\ctrls
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: ❯
[TRACE] 21:32:31.145 shell.go:Shell() - 0s
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: {{ if or (.Segments.Session.SSHSession) (.Root) }}{{ if .Segments.Session.SSHSession }} SSH{{ end }}{{ if and (.Segments.Session.SSHSession) (.Root) }}  {{ end }}{{ if .Root }}# Root{{ end }}{{ end }}
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: {{ if false }}{{ end }}
[TRACE] 21:32:31.145 shell.go:TemplateCache() - 0s
[TRACE] 21:32:31.145 shell.go:TemplateCache() - 0s
[TRACE] 21:32:31.145 shell.go:Shell() - 0s
[TRACE] 21:32:31.145 shell.go:TemplateCache() - 0s
[TRACE] 21:32:31.145 shell.go:Shell() - 0s
[DEBUG] 21:32:31.145 shell.go:Getenv:326 → NO DATA
[TRACE] 21:32:31.145 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: {{ if and (.Segments.Session.SSHSession) (not .Root) }}p:c-shell-state-ssh-active{{ end }}
[TRACE] 21:32:31.145 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: {{ if and (not .Segments.Session.SSHSession) (.Root) }}p:c-shell-state-root-active{{ end }}
[TRACE] 21:32:31.145 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: diamond
[DEBUG] 21:32:31.145 text.go:Render:71 → Rendering template: {{ if eq "False" (title (default "False" .Env.ENABLE_ARROW_DIVIDER_COLOR_EXECUTION_RETURN)) }}p:c-badge-white{{ else }}{{ if eq .Code 0 }}p:c-badge-return-success{{ else if or (eq .Code 1) (eq .Code 130) }}p:c-badge-return-fail-term{{ else }}p:c-badge-return-custom{{ end }}{{ end }}
[TRACE] 21:32:31.146 shell.go:TemplateCache() - 0s
[DEBUG] 21:32:31.146 text.go:Render:71 → Rendering template: plain
[TRACE] 21:32:31.146 shell.go:Shell() - 0s
[TRACE] 21:32:31.146 shell.go:Flags() - 0s
[TRACE] 21:32:31.146 shell.go:Shell() - 0s
[TRACE] 21:32:31.146 shell.go:Shell() - 0s
[DEBUG] 21:32:31.146 shell.go:Getenv:326 → C:\Users\ctrls\AppData\Local
[TRACE] 21:32:31.146 shell.go:Getenv(LOCALAPPDATA) - 77.1µs
[TRACE] 21:32:31.146 shell_windows.go:CachePath() - 77.1µs
[TRACE] 21:32:31.146 shell.go:Flags() - 0s
JanDeDobbeleer commented 1 month ago

@1298345095 Most likely an encoding issue. Force PowerShell to UTF8.

1298345095 commented 1 month ago

Microsoft.PowerShell_profile.ps1:

$previousOutputEncoding = [Console]::OutputEncoding
[Console]::OutputEncoding = [Text.Encoding]::UTF8
try {
    oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/chips.omp.json" | Invoke-Expression
} finally {
    [Console]::OutputEncoding = $previousOutputEncoding
}

no effect

JanDeDobbeleer commented 1 month ago

@1298345095 like this, otherwise you restore the encoding which still results in an issue:

[Console]::OutputEncoding = [Text.Encoding]::UTF8
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/chips.omp.json" | Invoke-Expression

Either way, this isn't an issue with oh-my-posh, it's an encoding and/or font issue that we can't solve.

1298345095 commented 1 month ago

Now I know what reason cause that... Some character have removed from nerd fonts v3. I think you should notice this problem in the document...

JanDeDobbeleer commented 1 month ago

@1298345095 ah yes, but V3 was dropped a while ago. I didn't expect this to occur. I'll add a notice in the FAQ.