JanDeDobbeleer / oh-my-posh

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

WSL setup with spotify api cannot show utf-8 #4378

Closed phong-nt-990 closed 1 year ago

phong-nt-990 commented 1 year ago

Code of Conduct

What happened?

Using ohmyposh with spotify api to display song titles, in WSL, cannot display utf-8 characters.

Theme

...
{ "foreground": "#ff20b5", "properties": { "paused_icon": "\uf04c ", "playing_icon": "\ue602 ", "stopped_icon": "\uf04d ", "track_separator": " - " }, "style": "plain", "template": " \uf1bc {{ .Icon}}{{ if ne .Status \"stopped\" }}{{ .Track }}{{ end }} ", "type": "spotify" }, ...

What OS are you seeing the problem on?

Windows

Which shell are you using?

bash

Log output

Version: 18.15.0

Shell: bash (4.4.20(1)-release)

Prompt:

┌  (WSL)⠀  bash⠀  M4PL3-DESKTOPm4pl3⠀                        Vi?t Nam Nh?ng Chuy?n Di |  21.1.0 |  base |  100  | 00:22:58 
└[ mnt »  »  » maple ]
➜

Segments:

ConsoleTitle(true)                        -   2 ms
Text(true)                                -   0 ms
Os(true)                                  -   0 ms
Shell(true)                               -   1 ms
Session(true)                             -   0 ms
Git(false)                                - 102 ms
Spotify(true)                             - 248 ms
Dart(false)                               -  14 ms
Node(true)                                -  13 ms
Python(true)                              -   8 ms
Battery(true)                             -   1 ms
Time(true)                                -   2 ms
Path(true)                                -   0 ms
Exit(true)                                -   0 ms

Run duration: 373.031768ms

Cache path: /home/m4pl3/.cache/oh-my-posh

Config path: /mnt/c/Users/maple/.config/powershell/hul10.omp.json

Logs:

[DEBUG] 00:22:58.768 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.768 shell.go:Getenv(TERM_PROGRAM) - 2.273097ms
[DEBUG] 00:22:58.768 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.768 shell.go:Getenv(OMP_CACHE_DIR) - 3.773µs
[DEBUG] 00:22:58.768 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.768 shell.go:Getenv(XDG_CACHE_HOME) - 1.806µs
[TRACE] 00:22:58.768 shell_unix.go:CachePath() - 21.186µs
[DEBUG] 00:22:58.770 shell.go:Getenv:392 → /mnt/c/Users/maple/.config/powershell/hul10.omp.json
[TRACE] 00:22:58.770 shell.go:Getenv(POSH_THEME) - 10.636µs
[DEBUG] 00:22:58.770 shell_unix.go:Platform:77 → ubuntu
[TRACE] 00:22:58.770 shell.go:resolveConfigPath() - 578.824µs
[TRACE] 00:22:58.770 shell.go:Init() - 3.975993ms
[TRACE] 00:22:58.770 shell.go:Flags() - 95ns
[TRACE] 00:22:58.779 config.go:loadConfig() - 8.571386ms
[TRACE] 00:22:58.779 shell.go:Flags() - 293ns
[DEBUG] 00:22:58.779 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.779 shell.go:Getenv(OMP_CACHE_DISABLED) - 5.523µs
[DEBUG] 00:22:58.779 shell.go:Shell:646 → no shell name provided in flags, trying to detect it
[DEBUG] 00:22:58.781 shell.go:Shell:654 → process name: bash
[TRACE] 00:22:58.781 shell.go:Shell() - 1.354645ms
[DEBUG] 00:22:58.781 shell.go:Getenv:392 → 4.4.20(1)-release
[TRACE] 00:22:58.781 shell.go:Getenv(POSH_SHELL_VERSION) - 3.299µs
[DEBUG] 00:22:58.781 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 00:22:58.781 text.go:Render:70 → Rendering template: {{if .Root}}[root] :: {{end}}{{.Shell}} :: {{.Folder}}
[TRACE] 00:22:58.781 shell_unix.go:Root() - 669ns
[TRACE] 00:22:58.781 shell.go:Shell() - 142ns
[TRACE] 00:22:58.781 shell.go:StatusCodes() - 39ns
[DEBUG] 00:22:58.781 shell_unix.go:IsWsl:35 → true
[TRACE] 00:22:58.781 shell_unix.go:IsWsl() - 50.725µs
[DEBUG] 00:22:58.781 shell.go:TemplateCache:827 → environment: [CONDA_SHLVL=1 NVM_DIR=/home/m4pl3/.nvm LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: CONDA_EXE=/home/m4pl3/anaconda3/bin/conda HOSTTYPE=x86_64 POSH_SHELL_VERSION=4.4.20(1)-release POSH_THEME=/mnt/c/Users/maple/.config/powershell/hul10.omp.json LESSCLOSE=/usr/bin/lesspipe %s %s PULSE_SERVER=unix:/mnt/wslg/PulseServer LANG=C.UTF-8 DISPLAY=:0 WSL_INTEROP=/run/WSL/8854_interop NVM_CD_FLAGS= WSL_DISTRO_NAME=Ubuntu-18.04 CONDA_PREFIX=/home/m4pl3/anaconda3 _CE_M= USER=m4pl3 WAYLAND_DISPLAY=wayland-0 PWD=/mnt/c/Users/maple HOME=/home/m4pl3 CONDA_PYTHON_EXE=/home/m4pl3/anaconda3/bin/python NAME=M4PL3-DESKTOP XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop _CE_CONDA= POSH_CURSOR_LINE=14 CONDA_PROMPT_MODIFIER=(base)  POSH_CURSOR_COLUMN=1 SHELL=/bin/bash TERM=xterm-256color NVM_BIN=/home/m4pl3/.nvm/versions/node/v21.1.0/bin POSH_PID=8857 POWERLINE_COMMAND=oh-my-posh SHLVL=1 WSL2_GUI_APPS_ENABLED=1 LOGNAME=m4pl3 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus XDG_RUNTIME_DIR=/run/user/1000/ PATH=/home/m4pl3/.nvm/versions/node/v21.1.0/bin:/home/m4pl3/anaconda3/bin:/home/m4pl3/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/ProgramData/anaconda3:/mnt/c/ProgramData/anaconda3/Library/mingw-w64/bin:/mnt/c/ProgramData/anaconda3/Library/usr/bin:/mnt/c/ProgramData/anaconda3/Library/bin:/mnt/c/ProgramData/anaconda3/Scripts:/mnt/c/ProgramData/anaconda3/bin:/mnt/c/ProgramData/anaconda3/condabin:/mnt/c/Program Files/WindowsApps/Microsoft.PowerShell_7.3.8.0_x64__8wekyb3d8bbwe:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/VMware/VMware Workstation/bin:/mnt/c/Program Files/Microsoft MPI/Bin:/mnt/c/Program Files (x86)/Common Files/Intel/Shared Libraries/redist/intel64/compiler:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files/Neovim/bin:/mnt/c/Users/maple/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/maple/OneDrive/Documents/Powershell/Modules:/mnt/c/Users/maple/AppData/Roaming/Python/Python39/Scripts:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files/dotnet:/mnt/c/Users/maple/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/Git LFS:/mnt/c/msys64/mingw64/bin:/mnt/c/Program Files/Cloudflare/Cloudflare WARP:/mnt/c/Users/maple/scoop/shims:/mnt/c/Program Files/MySQL/MySQL Shell 8.0/bin:/mnt/c/Users/maple/.cargo/bin:/mnt/c/Users/maple/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/maple/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/maple/AppData/Local/Programs/Fiddler:/mnt/c/Users/maple/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/maple/AppData/Roaming/npm:/mnt/c/texlive/2023/bin/windows:/snap/bin CONDA_DEFAULT_ENV=base NVM_INC=/home/m4pl3/.nvm/versions/node/v21.1.0/include/node WSLENV= LESSOPEN=| /usr/bin/lesspipe %s _=/usr/local/bin/oh-my-posh]
[TRACE] 00:22:58.782 shell.go:GOOS() - 222ns
[DEBUG] 00:22:58.782 shell.go:Pwd:422 → /mnt/c/Users/maple
[TRACE] 00:22:58.782 shell.go:Pwd() - 933.59µs
[TRACE] 00:22:58.783 shell.go:GOOS() - 121ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 85ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 26ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 28ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 26ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 25ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 25ns
[DEBUG] 00:22:58.783 shell.go:User:557 → m4pl3
[TRACE] 00:22:58.783 shell.go:User() - 6.384µs
[DEBUG] 00:22:58.783 shell.go:Host:569 → M4PL3-DESKTOP
[TRACE] 00:22:58.783 shell.go:Host() - 4.609µs
[TRACE] 00:22:58.783 shell.go:GOOS() - 25ns
[DEBUG] 00:22:58.783 shell_unix.go:Platform:77 → ubuntu
[DEBUG] 00:22:58.783 shell.go:Getenv:392 → 1
[TRACE] 00:22:58.783 shell.go:Getenv(SHLVL) - 2.692µs
[TRACE] 00:22:58.783 shell.go:TemplateCache() - 1.714178ms
[DEBUG] 00:22:58.783 shell.go:Getenv:392 → 14
[TRACE] 00:22:58.783 shell.go:Getenv(POSH_CURSOR_LINE) - 6.397µs
[DEBUG] 00:22:58.783 shell.go:Getenv:392 → 1
[TRACE] 00:22:58.783 shell.go:Getenv(POSH_CURSOR_COLUMN) - 2.335µs
[TRACE] 00:22:58.783 shell.go:Flags() - 144ns
[TRACE] 00:22:58.783 shell.go:Flags() - 40ns
[TRACE] 00:22:58.783 shell.go:Shell() - 138ns
[TRACE] 00:22:58.783 shell.go:Shell() - 40ns
[TRACE] 00:22:58.783 shell.go:Flags() - 393ns
[TRACE] 00:22:58.783 shell.go:Flags() - 210ns
[TRACE] 00:22:58.783 shell.go:Pwd() - 130ns
[TRACE] 00:22:58.783 shell.go:Pwd() - 176ns
[TRACE] 00:22:58.783 shell.go:Flags() - 59ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 60ns
[TRACE] 00:22:58.783 shell.go:Pwd() - 101ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 55ns
[DEBUG] 00:22:58.783 segment.go:SetEnabled:497 → Segment: Text
[TRACE] 00:22:58.783 shell.go:TemplateCache() - 241ns
[DEBUG] 00:22:58.783 segment.go:SetEnabled:497 → Segment: Git
[DEBUG] 00:22:58.783 segment.go:SetEnabled:497 → Segment: Shell
[TRACE] 00:22:58.783 shell.go:Flags() - 62ns
[DEBUG] 00:22:58.783 shell_unix.go:IsWsl:35 → true
[TRACE] 00:22:58.783 shell_unix.go:IsWsl() - 4.127µs
[TRACE] 00:22:58.783 shell.go:Pwd() - 88ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 39.194µs
[DEBUG] 00:22:58.783 segment.go:SetEnabled:497 → Segment: Session
[DEBUG] 00:22:58.783 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.783 shell.go:Getenv(SSH_CONNECTION) - 14.384µs
[DEBUG] 00:22:58.783 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.783 shell.go:Getenv(SSH_CLIENT) - 2.244µs
[TRACE] 00:22:58.783 shell.go:TemplateCache() - 76ns
[TRACE] 00:22:58.783 shell.go:Flags() - 24ns
[TRACE] 00:22:58.783 shell.go:Pwd() - 57ns
[TRACE] 00:22:58.783 shell.go:GOOS() - 34ns
[DEBUG] 00:22:58.783 segment.go:SetEnabled:497 → Segment: Os
[TRACE] 00:22:58.783 shell.go:GOOS() - 39ns
[DEBUG] 00:22:58.783 shell_unix.go:Platform:77 → ubuntu
[DEBUG] 00:22:58.783 properties.go:GetBool:22 → display_distro_name: false
[DEBUG] 00:22:58.783 properties.go:GetString:28 → 
[TRACE] 00:22:58.783 shell.go:TemplateCache() - 60ns
[DEBUG] 00:22:58.783 shell.go:FileContent:531 ↓
    5.15.90.1-microsoft-standard-WSL2

[TRACE] 00:22:58.783 shell.go:FileContent(/proc/sys/kernel/osrelease) - 343.187µs
[TRACE] 00:22:58.783 shell_unix.go:IsWsl2() - 356.073µs
[TRACE] 00:22:58.783 shell.go:Pwd() - 100ns
[DEBUG] 00:22:58.784 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[]
[TRACE] 00:22:58.784 shell.go:Shell() - 218ns
[TRACE] 00:22:58.784 shell.go:Flags() - 75ns
[TRACE] 00:22:58.784 shell.go:TemplateCache() - 277ns
[DEBUG] 00:22:58.784 shell.go:RunCommand:587 → C:/Users/maple
[TRACE] 00:22:58.784 shell.go:RunCommand(wslpath -m /mnt/c/Users/maple) - 904.05µs
[TRACE] 00:22:58.784 shell.go:GOOS() - 51ns
[DEBUG] 00:22:58.884 shell.go:CommandPath:608 → /mnt/c/Program Files/Git/cmd/git.exe
[TRACE] 00:22:58.884 shell.go:CommandPath(git.exe) - 99.521376ms
[TRACE] 00:22:58.884 shell.go:HasCommand(git.exe) - 99.526423ms
[TRACE] 00:22:58.884 shell.go:Pwd() - 159ns
[ERROR] 00:22:58.885 shell.go:HasParentFilePath:742 → stat .git: no such file or directory
[TRACE] 00:22:58.885 shell.go:HasParentFilePath(.git) - 1.235237ms
[DEBUG] 00:22:58.885 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 00:22:58.885 text.go:Render:70 → Rendering template:   {{.Name}}⠀
[DEBUG] 00:22:58.885 text.go:Render:70 → Rendering template:   {{.HostName}}{{if .Root}}<#ff1919>⚡ root ⚡</>{{else}}{{.UserName}}{{end}}⠀
[DEBUG] 00:22:58.885 text.go:Render:70 → Rendering template: ┌
[DEBUG] 00:22:58.885 text.go:Render:70 → Rendering template:  {{if .WSL}}<#ffffff>{{.Icon}} (WSL)</>{{else}}<#ffffff>{{.Icon}}</>{{end}}⠀
[TRACE] 00:22:58.885 shell.go:Shell() - 357ns
[TRACE] 00:22:58.885 shell.go:TemplateCache() - 497ns
[TRACE] 00:22:58.885 shell.go:Shell() - 183ns
[TRACE] 00:22:58.885 shell.go:TemplateCache() - 481ns
[TRACE] 00:22:58.885 shell.go:TemplateCache() - 286ns
[TRACE] 00:22:58.885 shell.go:Shell() - 87ns
[TRACE] 00:22:58.885 shell.go:Shell() - 158ns
[DEBUG] 00:22:58.885 text.go:Render:70 → Rendering template: plain
[DEBUG] 00:22:58.885 text.go:Render:70 → Rendering template: plain
[DEBUG] 00:22:58.885 text.go:Render:70 → Rendering template: plain
[DEBUG] 00:22:58.886 text.go:Render:70 → Rendering template: plain
[DEBUG] 00:22:58.886 text.go:Render:70 → Rendering template: plain
[TRACE] 00:22:58.886 shell.go:Shell() - 105ns
[TRACE] 00:22:58.886 shell.go:Shell() - 36ns
[TRACE] 00:22:58.886 shell.go:Shell() - 35ns
[TRACE] 00:22:58.886 shell.go:Shell() - 31ns
[TRACE] 00:22:58.886 shell.go:Flags() - 123ns
[TRACE] 00:22:58.886 shell.go:Pwd() - 242ns
[TRACE] 00:22:58.886 shell.go:GOOS() - 58ns
[DEBUG] 00:22:58.886 segment.go:SetEnabled:497 → Segment: Time
[TRACE] 00:22:58.886 shell.go:Flags() - 180ns
[TRACE] 00:22:58.886 shell.go:Pwd() - 142ns
[TRACE] 00:22:58.886 shell.go:GOOS() - 60ns
[TRACE] 00:22:58.886 shell.go:Flags() - 228ns
[DEBUG] 00:22:58.886 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 00:22:58.886 properties.go:GetStringArray:52 → folders: []
[TRACE] 00:22:58.886 shell.go:Flags() - 133ns
[DEBUG] 00:22:58.886 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:22:58.886 shell.go:Pwd() - 66ns
[TRACE] 00:22:58.886 shell.go:Pwd() - 125ns
[DEBUG] 00:22:58.886 properties.go:GetString:28 → files
[TRACE] 00:22:58.886 shell.go:GOOS() - 86ns
[DEBUG] 00:22:58.886 properties.go:GetBool:22 → fetch_package_manager: false
[TRACE] 00:22:58.886 shell.go:Pwd() - 100ns
[TRACE] 00:22:58.886 shell.go:Pwd() - 74ns
[TRACE] 00:22:58.886 shell.go:GOOS() - 63ns
[DEBUG] 00:22:58.886 segment.go:SetEnabled:497 → Segment: Dart
[TRACE] 00:22:58.886 shell.go:Flags() - 185ns
[DEBUG] 00:22:58.886 segment.go:SetEnabled:497 → Segment: Spotify
[DEBUG] 00:22:58.886 properties.go:GetStringArray:52 → extensions: [*.dart pubspec.yaml pubspec.yml pubspec.lock]
[DEBUG] 00:22:58.886 properties.go:GetStringArray:52 → folders: [.dart_tool]
[DEBUG] 00:22:58.886 shell_unix.go:IsWsl:35 → true
[DEBUG] 00:22:58.886 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:22:58.886 shell_unix.go:IsWsl() - 6.766µs
[TRACE] 00:22:58.886 shell.go:Pwd() - 83ns
[DEBUG] 00:22:58.886 properties.go:GetString:28 → files
[TRACE] 00:22:58.886 shell.go:Pwd() - 38ns
[DEBUG] 00:22:58.886 properties.go:GetString:28 → context
[DEBUG] 00:22:58.888 properties.go:GetString:28 → 15:04:05
[TRACE] 00:22:58.888 shell.go:Flags() - 297ns
[TRACE] 00:22:58.888 shell.go:TemplateCache() - 492ns
[TRACE] 00:22:58.888 shell.go:Pwd() - 656ns
[TRACE] 00:22:58.888 shell.go:Pwd() - 193ns
[TRACE] 00:22:58.888 shell.go:GOOS() - 52ns
[TRACE] 00:22:58.888 shell.go:GOOS() - 51ns
[DEBUG] 00:22:58.888 segment.go:SetEnabled:497 → Segment: Python
[DEBUG] 00:22:58.888 segment.go:SetEnabled:497 → Segment: Battery
[DEBUG] 00:22:58.888 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 00:22:58.888 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 00:22:58.888 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:22:58.888 shell.go:Pwd() - 126ns
[DEBUG] 00:22:58.888 properties.go:GetBool:22 → fetch_virtual_env: true
[DEBUG] 00:22:58.888 shell.go:CommandPath:608 → /home/m4pl3/anaconda3/bin/python
[TRACE] 00:22:58.888 shell.go:CommandPath(python) - 60.002µs
[DEBUG] 00:22:58.888 shell.go:HasFilesInDir:472 → false
[TRACE] 00:22:58.888 shell.go:HasFilesInDir(pyvenv.cfg) - 14.119µs
[DEBUG] 00:22:58.888 shell.go:HasFilesInDir:472 → false
[TRACE] 00:22:58.888 shell.go:HasFilesInDir(pyvenv.cfg) - 6.286µs
[DEBUG] 00:22:58.888 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.888 shell.go:Getenv(VIRTUAL_ENV) - 4.187µs
[DEBUG] 00:22:58.888 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.888 shell.go:Getenv(CONDA_ENV_PATH) - 6.274µs
[DEBUG] 00:22:58.888 shell.go:Getenv:392 → base
[TRACE] 00:22:58.888 shell.go:Getenv(CONDA_DEFAULT_ENV) - 3.529µs
[TRACE] 00:22:58.888 shell.go:GOOS() - 31ns
[TRACE] 00:22:58.888 shell.go:GOOS() - 48ns
[TRACE] 00:22:58.888 shell.go:GOOS() - 38ns
[TRACE] 00:22:58.888 shell.go:GOOS() - 36ns
[TRACE] 00:22:58.888 shell.go:GOOS() - 27ns
[DEBUG] 00:22:58.888 properties.go:GetBool:22 → display_default: true
[TRACE] 00:22:58.888 shell.go:Pwd() - 76ns
[DEBUG] 00:22:58.889 shell_unix.go:IsWsl:35 → true
[TRACE] 00:22:58.889 shell_unix.go:IsWsl() - 673.392µs
[DEBUG] 00:22:58.889 shell_unix.go:IsWsl:35 → true
[TRACE] 00:22:58.889 shell_unix.go:IsWsl() - 7.172µs
[DEBUG] 00:22:58.889 shell.go:FileContent:531 ↓
    5.15.90.1-microsoft-standard-WSL2

[TRACE] 00:22:58.889 shell.go:FileContent(/proc/sys/kernel/osrelease) - 325.241µs
[TRACE] 00:22:58.889 shell_unix.go:IsWsl2() - 375.691µs
[TRACE] 00:22:58.890 shell_windows_nix.go:BatteryState() - 735.278µs
[DEBUG] 00:22:58.890 properties.go:GetString:28 → 
[TRACE] 00:22:58.890 shell.go:TemplateCache() - 374ns
[DEBUG] 00:22:58.891 shell.go:HasFiles:458 → false
[TRACE] 00:22:58.891 shell.go:HasFiles(*.dart) - 4.736556ms
[TRACE] 00:22:58.891 shell.go:Pwd() - 116ns
[DEBUG] 00:22:58.891 shell.go:HasFiles:458 → false
[TRACE] 00:22:58.891 shell.go:HasFiles(*.js) - 4.809306ms
[TRACE] 00:22:58.891 shell.go:Pwd() - 92ns
[DEBUG] 00:22:58.892 shell.go:HasFiles:453 → true
[TRACE] 00:22:58.892 shell.go:HasFiles(*.py) - 3.435141ms
[DEBUG] 00:22:58.892 properties.go:GetBool:22 → fetch_version: true
[DEBUG] 00:22:58.892 shell.go:CommandPath:602 → /home/m4pl3/anaconda3/bin/python
[TRACE] 00:22:58.892 shell.go:CommandPath(python) - 9.174µs
[DEBUG] 00:22:58.892 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:58.892 shell.go:Getenv(PYENV_ROOT) - 47.518µs
[DEBUG] 00:22:58.892 shell.go:CommandPath:602 → /home/m4pl3/anaconda3/bin/python
[TRACE] 00:22:58.892 shell.go:CommandPath(python) - 16.891µs
[TRACE] 00:22:58.892 shell.go:HasCommand(python) - 20.641µs
[DEBUG] 00:22:58.894 shell.go:HasFiles:458 → false
[TRACE] 00:22:58.894 shell.go:HasFiles(pubspec.yaml) - 3.186602ms
[TRACE] 00:22:58.894 shell.go:Pwd() - 143ns
[DEBUG] 00:22:58.894 shell.go:HasFiles:458 → false
[TRACE] 00:22:58.894 shell.go:HasFiles(*.ts) - 3.259865ms
[TRACE] 00:22:58.894 shell.go:Pwd() - 2.567µs
[DEBUG] 00:22:58.894 shell.go:RunCommand:587 → Python 3.11.5
[TRACE] 00:22:58.894 shell.go:RunCommand(python --version) - 2.148584ms
[DEBUG] 00:22:58.894 properties.go:GetString:28 → https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}
[DEBUG] 00:22:58.894 text.go:Render:70 → Rendering template: https://docs.python.org/release/{{ .Major }}.{{ .Minor }}.{{ .Patch }}/whatsnew/changelog.html#python-{{ .Major }}-{{ .Minor }}-{{ .Patch }}
[TRACE] 00:22:58.894 shell.go:TemplateCache() - 250ns
[TRACE] 00:22:58.894 shell.go:TemplateCache() - 52ns
[DEBUG] 00:22:58.897 shell.go:HasFiles:458 → false
[TRACE] 00:22:58.897 shell.go:HasFiles(pubspec.yml) - 2.997822ms
[TRACE] 00:22:58.897 shell.go:Pwd() - 113ns
[DEBUG] 00:22:58.897 shell.go:HasFiles:453 → true
[TRACE] 00:22:58.897 shell.go:HasFiles(package.json) - 3.056531ms
[DEBUG] 00:22:58.897 properties.go:GetBool:22 → fetch_version: true
[DEBUG] 00:22:58.897 shell.go:CommandPath:608 → /home/m4pl3/.nvm/versions/node/v21.1.0/bin/node
[TRACE] 00:22:58.897 shell.go:CommandPath(node) - 26.239µs
[TRACE] 00:22:58.897 shell.go:HasCommand(node) - 28.996µs
[ERROR] 00:22:58.898 shell.go:RunCommand:585 → exit status 1
[DEBUG] 00:22:58.898 shell.go:RunCommand:587 ↓
    /home/m4pl3/.nvm/versions/node/v21.1.0/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /home/m4pl3/.nvm/versions/node/v21.1.0/bin/node)

[TRACE] 00:22:58.898 shell.go:RunCommand(node --version) - 928.501µs
[DEBUG] 00:22:58.898 properties.go:GetString:28 → https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V{{ .Major }}.md#{{ .Full }}
[DEBUG] 00:22:58.898 text.go:Render:70 → Rendering template: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V{{ .Major }}.md#{{ .Full }}
[TRACE] 00:22:58.898 shell.go:TemplateCache() - 345ns
[TRACE] 00:22:58.898 shell.go:Pwd() - 202ns
[ERROR] 00:22:58.899 shell.go:FileContent:527 → open /mnt/c/Users/maple/.nvmrc: no such file or directory
[TRACE] 00:22:58.899 shell.go:FileContent(.nvmrc) - 603.921µs
[TRACE] 00:22:58.899 shell.go:TemplateCache() - 958ns
[DEBUG] 00:22:58.900 shell.go:HasFiles:458 → false
[TRACE] 00:22:58.900 shell.go:HasFiles(pubspec.lock) - 3.108617ms
[DEBUG] 00:22:58.900 shell.go:HasFolder:501 → false
[TRACE] 00:22:58.900 shell.go:HasFolder(.dart_tool) - 498.779µs
[DEBUG] 00:22:59.134 shell.go:RunCommand:587 ↓
    "Spotify.exe","25832","Console","1","117,016 K","Running","M4PL3-DESKTOP\maple","0:00:57","Vicky Nhung - Vi?t Nam Nh?ng Chuy?n Di"
    "Spotify.exe","16080","Console","1","5,576 K","Running","M4PL3-DESKTOP\maple","0:00:00","N/A"
    "Spotify.exe","7888","Console","1","117,768 K","Running","M4PL3-DESKTOP\maple","0:00:12","N/A"
    "Spotify.exe","16964","Console","1","4,004 K","Unknown","M4PL3-DESKTOP\maple","0:00:00","N/A"
    "Spotify.exe","20132","Console","1","16,672 K","Unknown","M4PL3-DESKTOP\maple","0:00:05","N/A"
    "Spotify.exe","18012","Console","1","186,840 K","Unknown","M4PL3-DESKTOP\maple","0:01:58","N/A"
[TRACE] 00:22:59.134 shell.go:RunCommand(tasklist.exe /V /FI Imagename eq Spotify.exe /FO CSV /NH) - 248.702707ms
[DEBUG] 00:22:59.135 properties.go:GetString:28 → 
[TRACE] 00:22:59.135 shell.go:TemplateCache() - 634ns
[DEBUG] 00:22:59.135 text.go:Render:70 → Rendering template: | {{ .CurrentDate | date .Format }}
[DEBUG] 00:22:59.135 text.go:Render:70 → Rendering template: | {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} 

[DEBUG] 00:22:59.135 text.go:Render:70 → Rendering template:   {{ .Icon}}{{ if ne .Status "stopped" }}{{ .Track }}{{ end }}
[DEBUG] 00:22:59.135 text.go:Render:70 → Rendering template: |  {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}
[DEBUG] 00:22:59.135 text.go:Render:70 → Rendering template: |  {{ .Venv }}
[TRACE] 00:22:59.136 shell.go:TemplateCache() - 755ns
[TRACE] 00:22:59.136 shell.go:TemplateCache() - 577ns
[TRACE] 00:22:59.136 shell.go:Shell() - 178ns
[TRACE] 00:22:59.136 shell.go:Shell() - 189ns
[TRACE] 00:22:59.136 shell.go:TemplateCache() - 165ns
[TRACE] 00:22:59.136 shell.go:Shell() - 121ns
[TRACE] 00:22:59.136 shell.go:TemplateCache() - 94ns
[TRACE] 00:22:59.136 shell.go:Shell() - 53ns
[TRACE] 00:22:59.136 shell.go:TemplateCache() - 690ns
[TRACE] 00:22:59.136 shell.go:Shell() - 142ns
[DEBUG] 00:22:59.136 text.go:Render:70 → Rendering template: plain
[DEBUG] 00:22:59.136 text.go:Render:70 → Rendering template: powerline
[DEBUG] 00:22:59.136 text.go:Render:70 → Rendering template: powerline
[DEBUG] 00:22:59.136 text.go:Render:70 → Rendering template: plain
[DEBUG] 00:22:59.136 text.go:Render:70 → Rendering template: {{if eq "Charging" .State.String}}#4caf50{{end}}
[TRACE] 00:22:59.136 shell.go:TemplateCache() - 372ns
[DEBUG] 00:22:59.136 text.go:Render:70 → Rendering template: {{if eq "Discharging" .State.String}}#40c4ff{{end}}
[TRACE] 00:22:59.137 shell.go:TemplateCache() - 212ns
[DEBUG] 00:22:59.137 text.go:Render:70 → Rendering template: {{if eq "Full" .State.String}}#ff0000{{end}}
[TRACE] 00:22:59.137 shell.go:TemplateCache() - 290ns
[DEBUG] 00:22:59.137 text.go:Render:70 → Rendering template: powerline
[DEBUG] 00:22:59.137 text.go:Render:70 → Rendering template: plain
[DEBUG] 00:22:59.138 shell_unix.go:TerminalWidth:70 → terminal width: 133
[TRACE] 00:22:59.138 shell_unix.go:TerminalWidth() - 832.663µs
[TRACE] 00:22:59.138 shell.go:Shell() - 123ns
[TRACE] 00:22:59.138 shell.go:Shell() - 23ns
[TRACE] 00:22:59.138 shell.go:Shell() - 38ns
[TRACE] 00:22:59.138 shell.go:Shell() - 43ns
[TRACE] 00:22:59.138 shell.go:Flags() - 108ns
[TRACE] 00:22:59.138 shell.go:Pwd() - 144ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 43ns
[DEBUG] 00:22:59.138 segment.go:SetEnabled:497 → Segment: Path
[TRACE] 00:22:59.138 shell.go:Pwd() - 36ns
[TRACE] 00:22:59.138 shell.go:Shell() - 47ns
[TRACE] 00:22:59.138 shell.go:Shell() - 40ns
[DEBUG] 00:22:59.138 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 00:22:59.138 properties.go:GetString:28 → 
[DEBUG] 00:22:59.138 properties.go:GetString:28 → 
[TRACE] 00:22:59.138 shell.go:GOOS() - 22ns
[DEBUG] 00:22:59.138 properties.go:GetString:28 → 
[DEBUG] 00:22:59.138 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 67ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 41ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 23ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 43ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 22ns
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 29ns
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 23ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 23ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 23ns
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 40ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 23ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 23ns
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 24ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 39ns
[TRACE] 00:22:59.138 shell.go:GOOS() - 40ns
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 35ns
[DEBUG] 00:22:59.138 properties.go:GetString:28 → agnoster
[DEBUG] 00:22:59.138 properties.go:GetString:28 → 
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 51ns
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 39ns
[DEBUG] 00:22:59.138 properties.go:GetStringArray:52 → cycle: []
[DEBUG] 00:22:59.138 properties.go:GetString:28 → <#93d0ff> » </>
[DEBUG] 00:22:59.138 text.go:Render:70 → Rendering template: <#93d0ff> » </>
[DEBUG] 00:22:59.138 properties.go:GetBool:22 → cycle_folder_separator: false
[DEBUG] 00:22:59.138 properties.go:GetString:28 → %s
[DEBUG] 00:22:59.138 properties.go:GetString:28 → %s
[TRACE] 00:22:59.138 shell.go:PathSeparator() - 57ns
[TRACE] 00:22:59.138 shell.go:Pwd() - 61ns
[DEBUG] 00:22:59.138 shell_unix.go:IsWsl:35 → true
[TRACE] 00:22:59.138 shell_unix.go:IsWsl() - 5.849µs
[DEBUG] 00:22:59.138 shell.go:RunCommand:587 → C:/Users/maple
[TRACE] 00:22:59.138 shell.go:RunCommand(wslpath -m /mnt/c/Users/maple) - 587.608µs
[TRACE] 00:22:59.138 shell.go:StackCount() - 94ns
[TRACE] 00:22:59.139 shell_unix.go:DirIsWritable(/mnt/c/Users/maple) - 4.555µs
[TRACE] 00:22:59.139 shell.go:TemplateCache() - 316ns
[DEBUG] 00:22:59.139 text.go:Render:70 → Rendering template: <p:white>└</><#93d0ff>[</> {{.Path}} <#93d0ff>]</>
[TRACE] 00:22:59.139 shell.go:TemplateCache() - 153ns
[TRACE] 00:22:59.139 shell.go:Shell() - 57ns
[DEBUG] 00:22:59.139 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:59.139 shell.go:Getenv(TERM_PROGRAM) - 3.897µs
[DEBUG] 00:22:59.139 text.go:Render:70 → Rendering template: plain
[TRACE] 00:22:59.139 shell.go:Shell() - 47ns
[TRACE] 00:22:59.139 shell.go:Shell() - 25ns
[TRACE] 00:22:59.139 shell.go:Shell() - 23ns
[TRACE] 00:22:59.139 shell.go:Shell() - 25ns
[TRACE] 00:22:59.139 shell.go:Flags() - 102ns
[DEBUG] 00:22:59.139 properties.go:GetString:28 → {{ .Code }}
[TRACE] 00:22:59.139 shell.go:Pwd() - 99ns
[TRACE] 00:22:59.139 shell.go:GOOS() - 57ns
[DEBUG] 00:22:59.139 segment.go:SetEnabled:497 → Segment: Exit
[TRACE] 00:22:59.139 shell.go:StatusCodes() - 73ns
[DEBUG] 00:22:59.139 text.go:Render:70 → Rendering template: {{ .Code }}
[TRACE] 00:22:59.139 shell.go:TemplateCache() - 105ns
[DEBUG] 00:22:59.139 properties.go:GetBool:22 → always_enabled: true
[TRACE] 00:22:59.139 shell.go:TemplateCache() - 48ns
[DEBUG] 00:22:59.139 text.go:Render:70 → Rendering template: <p:white></>➜
[TRACE] 00:22:59.139 shell.go:Shell() - 80ns
[DEBUG] 00:22:59.139 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:59.139 shell.go:Getenv(TERM_PROGRAM) - 3.252µs
[DEBUG] 00:22:59.139 text.go:Render:70 → Rendering template: {{if gt .Code 0}}#ff3030{{end}}
[TRACE] 00:22:59.139 shell.go:TemplateCache() - 132ns
[DEBUG] 00:22:59.139 text.go:Render:70 → Rendering template: plain
[TRACE] 00:22:59.139 shell.go:Shell() - 56ns
[TRACE] 00:22:59.139 shell.go:Shell() - 52ns
[TRACE] 00:22:59.139 shell.go:Flags() - 58ns
[TRACE] 00:22:59.139 shell.go:Shell() - 34ns
[TRACE] 00:22:59.139 shell.go:Shell() - 26ns
[DEBUG] 00:22:59.139 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:59.139 shell.go:Getenv(OMP_CACHE_DIR) - 4.459µs
[DEBUG] 00:22:59.139 shell.go:Getenv:392 → NO DATA
[TRACE] 00:22:59.139 shell.go:Getenv(XDG_CACHE_HOME) - 1.746µs
[TRACE] 00:22:59.139 shell_unix.go:CachePath() - 18.197µs
[TRACE] 00:22:59.139 shell.go:Flags() - 53ns
JanDeDobbeleer commented 1 year ago

That seems to be a limitation of the Windows API as that's exactly what we get. I know that Windows is entirely localized and encoded based on the device settings so we won't be able to do much to control that.

[DEBUG] 00:22:59.134 shell.go:RunCommand:587 ↓
    "Spotify.exe","25832","Console","1","117,016 K","Running","M4PL3-DESKTOP\maple","0:00:57","Vicky Nhung - Vi?t Nam Nh?ng Chuy?n Di"
JanDeDobbeleer commented 1 year ago

Had a look, not much we can do as this is a Windows encoding issue.

github-actions[bot] commented 6 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.