JanDeDobbeleer / oh-my-posh

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

Unexpected error icon on WSL startup #4922

Closed mumuxijili closed 4 months ago

mumuxijili commented 4 months ago

Code of Conduct

What happened?

I'm using Ubuntu on WSL and an error icon appears every time I login. Screenshot 2024-05-11 235831 Any other commands won't trigger this error icon. I try to see what's the meaning of the error with the following modification of theme file:

image

and it returns '0'

image

System versions: WSL version: 2.1.5.0 WSL distro: Ubuntu Ubuntu version: Ubuntu 22.04.3 LTS oh-my-posh version: 19.28.0 (actually I have tried version 19.20.0 and still have this error icon)

Theme

default theme

What OS are you seeing the problem on?

Linux

Which shell are you using?

bash

Log output

Version: 19.28.0

Shell: Relay(18716)

Prompt:

 pang   Pang   

Segments:

ConsoleTitle(true) -   0 ms
Session(true)      -   0 ms
Path(true)         -   1 ms
Git(false)         -   9 ms
Root(false)        -   0 ms
Status(true)       -   1 ms
Node(false)        -   1 ms
Go(false)          -   0 ms
Python(false)      -   1 ms
Shell(true)        -   0 ms
Time(true)         -   0 ms

Run duration: 14.369661ms

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

Config path: no --config set, using default built-in configuration

Logs:

[DEBUG] 23:56:03.306 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.306 shell.go:Getenv(TERM_PROGRAM) - 34.342µs
[DEBUG] 23:56:03.306 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.306 shell.go:Getenv(OMP_CACHE_DIR) - 3.821µs
[DEBUG] 23:56:03.306 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.306 shell.go:Getenv(XDG_CACHE_HOME) - 1.72µs
[TRACE] 23:56:03.306 shell_unix.go:CachePath() - 14.601µs
[DEBUG] 23:56:03.306 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.306 shell.go:Getenv(POSH_THEME) - 3.681µs
[DEBUG] 23:56:03.306 shell.go:resolveConfigPath:245 → No config set, fallback to default config
[TRACE] 23:56:03.306 shell.go:resolveConfigPath() - 11.231µs
[TRACE] 23:56:03.306 shell.go:Init() - 257.846µs
[TRACE] 23:56:03.306 shell.go:Flags() - 30ns
[DEBUG] 23:56:03.306 config.go:loadConfig:127 → no config file specified, using default
[TRACE] 23:56:03.306 config.go:loadConfig() - 15.631µs
[TRACE] 23:56:03.306 shell.go:Flags() - 30ns
[DEBUG] 23:56:03.306 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.306 shell.go:Getenv(OMP_CACHE_DISABLED) - 1.81µs
[DEBUG] 23:56:03.306 shell.go:Shell:593 → no shell name provided in flags, trying to detect it
[DEBUG] 23:56:03.306 shell.go:Shell:601 → process name: Relay(18716)
[TRACE] 23:56:03.306 shell.go:Shell() - 264.447µs
[DEBUG] 23:56:03.306 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.306 shell.go:Getenv(POSH_SHELL_VERSION) - 2.82µs
[DEBUG] 23:56:03.306 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 23:56:03.306 text.go:Render:70 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 23:56:03.306 shell_unix.go:Root() - 270ns
[TRACE] 23:56:03.306 shell.go:Shell() - 60ns
[TRACE] 23:56:03.306 shell.go:StatusCodes() - 50ns
[DEBUG] 23:56:03.306 shell_unix.go:IsWsl:35 → true
[TRACE] 23:56:03.306 shell_unix.go:IsWsl() - 3.88µs
[DEBUG] 23:56:03.306 shell.go:TemplateCache:774 → environment: [SHELL=/bin/bash WSL2_GUI_APPS_ENABLED=1 WSL_DISTRO_NAME=Ubuntu WT_SESSION=3b657b60-f097-4fe4-8321-d9aa2a16d002 NAME=DESKTOP-ERQI PWD=/mnt/c/Users/Pang LOGNAME=pang HOME=/home/pang LANG=C.UTF-8 WSL_INTEROP=/run/WSL/18715_interop WAYLAND_DISPLAY=wayland-0 TERM=xterm-256color USER=pang DISPLAY=:0 SHLVL=0 XDG_RUNTIME_DIR=/run/user/1000/ WSLENV=WT_SESSION:WT_PROFILE_ID: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/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/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/TortoiseGit/bin:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/dotnet/:/mnt/c/libs/nodejs/:/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/Users/Pang/scoop/apps/gsudo/current:/mnt/c/libs/Python/Python310/Scripts/:/mnt/c/libs/Python/Python310/:/mnt/c/Users/Pang/scoop/shims:/mnt/c/Users/Pang/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/Bandizip/:/mnt/c/Users/Pang/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/Pang/.dotnet/tools:/mnt/c/Users/Pang/.dotnet/tools:/mnt/c/Users/Pang/AppData/Roaming/npm:/mnt/c/Users/Pang/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/Pang/bin DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus HOSTTYPE=x86_64 PULSE_SERVER=unix:/mnt/wslg/PulseServer WT_PROFILE_ID={61c54bbd-c2c6-5271-96e7-009a87ff44bf} _=/usr/local/bin/oh-my-posh]
[TRACE] 23:56:03.307 shell.go:GOOS() - 130ns
[DEBUG] 23:56:03.307 shell.go:Pwd:355 → /mnt/c/Users/Pang
[TRACE] 23:56:03.307 shell.go:Pwd() - 277.187µs
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 40ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[DEBUG] 23:56:03.307 shell.go:User:493 → pang
[TRACE] 23:56:03.307 shell.go:User() - 2.42µs
[DEBUG] 23:56:03.307 shell.go:Host:505 → DESKTOP-ERQI
[TRACE] 23:56:03.307 shell.go:Host() - 3.331µs
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[DEBUG] 23:56:03.307 shell_unix.go:Platform:87 → ubuntu
[DEBUG] 23:56:03.307 shell.go:Getenv:325 → 0
[TRACE] 23:56:03.307 shell.go:Getenv(SHLVL) - 1.92µs
[TRACE] 23:56:03.307 shell.go:TemplateCache() - 360.552µs
[DEBUG] 23:56:03.307 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.307 shell.go:Getenv(POSH_CURSOR_LINE) - 2.271µs
[DEBUG] 23:56:03.307 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.307 shell.go:Getenv(POSH_CURSOR_COLUMN) - 1.54µs
[TRACE] 23:56:03.307 shell.go:Flags() - 40ns
[TRACE] 23:56:03.307 shell.go:Flags() - 20ns
[TRACE] 23:56:03.307 shell.go:Shell() - 50ns
[TRACE] 23:56:03.307 shell.go:Shell() - 30ns
[TRACE] 23:56:03.307 shell.go:Flags() - 40ns
[TRACE] 23:56:03.307 shell.go:Flags() - 110ns
[DEBUG] 23:56:03.307 properties.go:GetString:28 → {{ .Code }}
[TRACE] 23:56:03.307 shell.go:Pwd() - 70ns
[TRACE] 23:56:03.307 shell.go:Pwd() - 80ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 70ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[DEBUG] 23:56:03.307 segment.go:SetEnabled:535 → Segment: Status
[DEBUG] 23:56:03.307 segment.go:SetEnabled:535 → Segment: Path
[TRACE] 23:56:03.307 shell.go:StatusCodes() - 60ns
[TRACE] 23:56:03.307 shell.go:Pwd() - 40ns
[TRACE] 23:56:03.307 shell.go:Shell() - 81ns
[DEBUG] 23:56:03.307 text.go:Render:70 → Rendering template: {{ .Code }}
[TRACE] 23:56:03.307 shell.go:Shell() - 30ns
[DEBUG] 23:56:03.307 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 23:56:03.307 properties.go:GetString:28 → 
[DEBUG] 23:56:03.307 properties.go:GetString:28 → 
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[DEBUG] 23:56:03.307 properties.go:GetString:28 → ~
[DEBUG] 23:56:03.307 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 70ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 30ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 30ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[DEBUG] 23:56:03.307 properties.go:GetString:28 → NO DATA
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[DEBUG] 23:56:03.307 properties.go:GetString:28 → folder
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 20ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 20ns
[DEBUG] 23:56:03.307 properties.go:GetString:28 → NO DATA
[TRACE] 23:56:03.307 shell.go:PathSeparator() - 30ns
[DEBUG] 23:56:03.307 properties.go:GetString:28 → /
[TRACE] 23:56:03.307 shell.go:Pwd() - 30ns
[DEBUG] 23:56:03.307 shell_unix.go:IsWsl:35 → true
[TRACE] 23:56:03.307 shell_unix.go:IsWsl() - 2.09µs
[TRACE] 23:56:03.307 shell.go:Flags() - 410ns
[TRACE] 23:56:03.307 shell.go:Pwd() - 120ns
[TRACE] 23:56:03.307 shell.go:GOOS() - 50ns
[DEBUG] 23:56:03.307 segment.go:SetEnabled:535 → Segment: Root
[TRACE] 23:56:03.307 shell_unix.go:Root() - 390ns
[TRACE] 23:56:03.308 shell.go:Flags() - 220ns
[TRACE] 23:56:03.308 shell.go:Pwd() - 70ns
[TRACE] 23:56:03.308 shell.go:GOOS() - 30ns
[DEBUG] 23:56:03.308 segment.go:SetEnabled:535 → Segment: Git
[DEBUG] 23:56:03.308 shell_unix.go:IsWsl:35 → true
[TRACE] 23:56:03.309 shell.go:Flags() - 110ns
[TRACE] 23:56:03.309 shell.go:Pwd() - 90ns
[TRACE] 23:56:03.309 shell.go:GOOS() - 30ns
[DEBUG] 23:56:03.309 segment.go:SetEnabled:535 → Segment: Session
[DEBUG] 23:56:03.309 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.309 shell.go:Getenv(SSH_CONNECTION) - 7.94µs
[DEBUG] 23:56:03.309 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.309 shell.go:Getenv(SSH_CLIENT) - 1.77µs
[DEBUG] 23:56:03.309 shell_unix.go:Platform:87 → ubuntu
[DEBUG] 23:56:03.309 shell.go:RunCommand:523 → C:/Users/Pang
[TRACE] 23:56:03.309 shell.go:RunCommand(wslpath -m /mnt/c/Users/Pang) - 1.672673ms
[TRACE] 23:56:03.309 shell.go:StackCount() - 50ns
[TRACE] 23:56:03.309 shell_unix.go:DirIsWritable(/mnt/c/Users/Pang) - 7.27µs
[TRACE] 23:56:03.309 shell.go:TemplateCache() - 200ns
[TRACE] 23:56:03.309 shell.go:TemplateCache() - 200ns
[TRACE] 23:56:03.309 shell_unix.go:IsWsl() - 870.355µs
[DEBUG] 23:56:03.309 properties.go:GetBool:22 → always_enabled: true
[TRACE] 23:56:03.309 shell.go:TemplateCache() - 90ns
[DEBUG] 23:56:03.309 shell.go:FileContent:467 ↓
    5.15.146.1-microsoft-standard-WSL2

[TRACE] 23:56:03.309 shell.go:FileContent(/proc/sys/kernel/osrelease) - 30.142µs
[TRACE] 23:56:03.309 shell_unix.go:IsWsl2() - 1.12248ms
[TRACE] 23:56:03.309 shell.go:Pwd() - 100ns
[DEBUG] 23:56:03.309 shell.go:RunCommand:523 → NO DATA
[TRACE] 23:56:03.309 shell.go:RunCommand(who am i) - 688.142µs
[TRACE] 23:56:03.309 shell.go:TemplateCache() - 150ns
[DEBUG] 23:56:03.309 shell.go:RunCommand:523 → C:/Users/Pang
[TRACE] 23:56:03.309 shell.go:RunCommand(wslpath -m /mnt/c/Users/Pang) - 536.514µs
[TRACE] 23:56:03.309 shell.go:GOOS() - 40ns
[DEBUG] 23:56:03.317 shell.go:CommandPath:545 → /mnt/c/Program Files/Git/cmd/git.exe
[TRACE] 23:56:03.317 shell.go:CommandPath(git.exe) - 7.893868ms
[TRACE] 23:56:03.317 shell.go:HasCommand(git.exe) - 7.897239ms
[TRACE] 23:56:03.317 shell.go:Pwd() - 70ns
[ERROR] 23:56:03.318 shell.go:HasParentFilePath:689 → stat .git: no such file or directory
[TRACE] 23:56:03.318 shell.go:HasParentFilePath(.git) - 301.999µs
[DEBUG] 23:56:03.318 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template:  {{ if gt .Code 0 }}{{ else }}{{ end }}
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template:   {{ path .Path .Location }}
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template:  {{ if .SSHSession }} {{ end }}{{ .UserName }}
[TRACE] 23:56:03.318 shell.go:TemplateCache() - 160ns
[TRACE] 23:56:03.318 shell.go:TemplateCache() - 200ns
[TRACE] 23:56:03.318 shell.go:Shell() - 60ns
[TRACE] 23:56:03.318 shell.go:Shell() - 60ns
[TRACE] 23:56:03.318 shell.go:TemplateCache() - 210ns
[TRACE] 23:56:03.318 shell.go:Shell() - 50ns
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template: diamond
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template: powerline
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template: powerline
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template: powerline
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 23:56:03.318 shell.go:TemplateCache() - 260ns
[DEBUG] 23:56:03.318 text.go:Render:70 → Rendering template: diamond
[TRACE] 23:56:03.318 shell.go:Shell() - 80ns
[TRACE] 23:56:03.318 shell.go:Shell() - 40ns
[TRACE] 23:56:03.318 shell.go:Shell() - 30ns
[TRACE] 23:56:03.318 shell.go:Shell() - 30ns
[TRACE] 23:56:03.318 shell.go:Flags() - 130ns
[TRACE] 23:56:03.318 shell.go:Flags() - 110ns
[TRACE] 23:56:03.318 shell.go:Pwd() - 90ns
[TRACE] 23:56:03.318 shell.go:Pwd() - 70ns
[TRACE] 23:56:03.318 shell.go:GOOS() - 40ns
[TRACE] 23:56:03.318 shell.go:GOOS() - 30ns
[DEBUG] 23:56:03.318 segment.go:SetEnabled:535 → Segment: Time
[DEBUG] 23:56:03.318 segment.go:SetEnabled:535 → Segment: Go
[TRACE] 23:56:03.318 shell.go:Flags() - 120ns
[DEBUG] 23:56:03.318 properties.go:GetString:28 → 15:04:05
[DEBUG] 23:56:03.318 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[TRACE] 23:56:03.318 shell.go:TemplateCache() - 120ns
[TRACE] 23:56:03.318 shell.go:Pwd() - 80ns
[DEBUG] 23:56:03.318 properties.go:GetStringArray:52 → folders: []
[TRACE] 23:56:03.318 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.318 shell.go:Flags() - 490ns
[DEBUG] 23:56:03.318 segment.go:SetEnabled:535 → Segment: Node
[TRACE] 23:56:03.318 shell.go:Flags() - 100ns
[TRACE] 23:56:03.318 shell.go:Pwd() - 40ns
[TRACE] 23:56:03.318 shell.go:Pwd() - 40ns
[DEBUG] 23:56:03.318 properties.go:GetString:28 → files
[TRACE] 23:56:03.318 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.318 shell.go:Pwd() - 40ns
[DEBUG] 23:56:03.318 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 23:56:03.318 properties.go:GetString:28 → files
[DEBUG] 23:56:03.318 segment.go:SetEnabled:535 → Segment: Shell
[DEBUG] 23:56:03.318 properties.go:GetStringArray:52 → folders: []
[TRACE] 23:56:03.318 shell.go:Pwd() - 80ns
[DEBUG] 23:56:03.318 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[]
[DEBUG] 23:56:03.318 properties.go:GetBool:22 → home_enabled: false
[TRACE] 23:56:03.318 shell.go:GOOS() - 30ns
[TRACE] 23:56:03.318 shell.go:Pwd() - 30ns
[TRACE] 23:56:03.318 shell.go:Shell() - 40ns
[TRACE] 23:56:03.318 shell.go:Flags() - 30ns
[DEBUG] 23:56:03.318 segment.go:SetEnabled:535 → Segment: Python
[DEBUG] 23:56:03.318 properties.go:GetString:28 → files
[TRACE] 23:56:03.318 shell.go:TemplateCache() - 80ns
[DEBUG] 23:56:03.318 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 23:56:03.318 properties.go:GetBool:22 → fetch_package_manager: false
[TRACE] 23:56:03.318 shell.go:Pwd() - 90ns
[DEBUG] 23:56:03.318 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 23:56:03.318 properties.go:GetBool:22 → home_enabled: false
[TRACE] 23:56:03.318 shell.go:Pwd() - 40ns
[DEBUG] 23:56:03.318 properties.go:GetBool:22 → fetch_virtual_env: false
[TRACE] 23:56:03.318 shell.go:Pwd() - 20ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(*.py) - 793.369µs
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(*.go) - 858.393µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 200ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(*.ipynb) - 13.161µs
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(*.js) - 852.843µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 40ns
[TRACE] 23:56:03.319 shell.go:Pwd() - 80ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(pyproject.toml) - 4.88µs
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(*.ts) - 9.201µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 270ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(venv.bak) - 4.26µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 300ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(go.mod) - 5.61µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 30ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(package.json) - 4.881µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 30ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(.nvmrc) - 3.89µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 20ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(pnpm-workspace.yaml) - 4.62µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 30ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(.pnpmfile.cjs) - 10.921µs
[TRACE] 23:56:03.319 shell.go:Pwd() - 20ns
[DEBUG] 23:56:03.319 shell.go:HasFilesInDir:408 → false
[TRACE] 23:56:03.319 shell.go:HasFilesInDir(.vue) - 3.74µs
[DEBUG] 23:56:03.319 shell.go:HasFolder:437 → false
[TRACE] 23:56:03.319 shell.go:HasFolder(.venv) - 104.327µs
[DEBUG] 23:56:03.319 shell.go:HasFolder:437 → false
[TRACE] 23:56:03.319 shell.go:HasFolder(venv) - 112.587µs
[DEBUG] 23:56:03.320 shell.go:HasFolder:437 → false
[TRACE] 23:56:03.320 shell.go:HasFolder(virtualenv) - 102.257µs
[DEBUG] 23:56:03.320 shell.go:HasFolder:437 → false
[TRACE] 23:56:03.320 shell.go:HasFolder(venv-win) - 114.337µs
[DEBUG] 23:56:03.320 shell.go:HasFolder:437 → false
[TRACE] 23:56:03.320 shell.go:HasFolder(pyenv-win) - 100.866µs
[DEBUG] 23:56:03.320 text.go:Render:70 → Rendering template: at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>
[DEBUG] 23:56:03.320 text.go:Render:70 → Rendering template: in <p:blue><b>{{ .Name }}</b></>
[TRACE] 23:56:03.320 shell.go:TemplateCache() - 150ns
[TRACE] 23:56:03.320 shell.go:TemplateCache() - 170ns
[TRACE] 23:56:03.320 shell.go:Shell() - 60ns
[TRACE] 23:56:03.320 shell.go:Shell() - 60ns
[DEBUG] 23:56:03.320 text.go:Render:70 → Rendering template: plain
[DEBUG] 23:56:03.320 text.go:Render:70 → Rendering template: plain
[DEBUG] 23:56:03.320 text.go:Render:70 → Rendering template: plain
[DEBUG] 23:56:03.320 text.go:Render:70 → Rendering template: plain
[DEBUG] 23:56:03.320 text.go:Render:70 → Rendering template: plain
[TRACE] 23:56:03.320 shell.go:Shell() - 50ns
[TRACE] 23:56:03.320 shell.go:Shell() - 20ns
[TRACE] 23:56:03.320 shell.go:Flags() - 30ns
[DEBUG] 23:56:03.320 text.go:Render:70 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 23:56:03.320 shell.go:TemplateCache() - 100ns
[TRACE] 23:56:03.320 shell.go:Shell() - 50ns
[TRACE] 23:56:03.320 shell.go:Shell() - 30ns
[DEBUG] 23:56:03.320 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.320 shell.go:Getenv(OMP_CACHE_DIR) - 2.61µs
[DEBUG] 23:56:03.320 shell.go:Getenv:325 → NO DATA
[TRACE] 23:56:03.320 shell.go:Getenv(XDG_CACHE_HOME) - 1.47µs
[TRACE] 23:56:03.320 shell_unix.go:CachePath() - 14.431µs
[TRACE] 23:56:03.320 shell.go:Flags() - 20ns
JanDeDobbeleer commented 4 months ago

This is an issue in your rc file, not with oh-my-posh. Somewhere a command exits with a non-zero code, this has been reported before and it's always an underlying issue.

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