Theme not applied after upgrade from v26.20.1 #6799
Code of Conduct
What happened?Upgraded from 26.11.0 to 26.23.6 and the selected theme is not applied any more. Log files from trace ThemeUsing quick-term theme. Load oh-my-posh in powershell restricted mode What OS are you seeing the problem on?Windows Which shell are you using?powershell Log output[DEBUG] 07:36:58.711 root.go:58 → logging enabled, raw mode: true
[DEBUG] 07:36:58.736 root.go:60 → oh-my-posh version 26.23.6
[DEBUG] 07:36:58.736 init.go:28 → enable persistent cache
[TRACE] 07:36:58.736 init.go:SessionID() - 0s
[DEBUG] 07:36:58.736 path_windows.go:PackageFamilyName:44 → failed to get PackageFamilyName
[TRACE] 07:36:58.736 path_windows.go:PackageFamilyName() - 0s
[TRACE] 07:36:58.736 path.go:Path() - 0s
[DEBUG] 07:36:58.737 file_map_windows.go:bytes:210 → empty string
[ERROR] 07:36:58.737 store.go:init:79 → EOF
[TRACE] 07:36:58.737 store.go:init(session pwsh.efe867e1-1913-417b-91e7-0ce58e2bd9fb.omp.cache) - 552.1µs
[TRACE] 07:36:58.737 path.go:Path() - 0s
[DEBUG] 07:36:58.737 store.go:init:92 → (device) loading DSC_CONFIGURATION
[DEBUG] 07:36:58.737 store.go:init:92 → (device) loading DSC_SHELL
[TRACE] 07:36:58.737 store.go:init(device omp.cache) - 589.2µs
[DEBUG] 07:36:58.737 store.go:]:135 → (session) key not found: prompt_count_cache
[TRACE] 07:36:58.737 store.go:](session prompt_count_cache) - 0s
[DEBUG] 07:36:58.737 store.go:]:171 → (session) setting entry: prompt_count_cache - 1 with duration: 24h
[TRACE] 07:36:58.737 store.go:](session prompt_count_cache) - 0s
[TRACE] 07:36:58.737 terminal.go:setPromptCount() - 0s
[TRACE] 07:36:58.737 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.737 terminal.go:setPwd:102 → C:\Users\anonuser
[TRACE] 07:36:58.737 terminal.go:setPwd() - 0s
[TRACE] 07:36:58.737 terminal.go:Init() - 0s
[DEBUG] 07:36:58.737 store.go:]:135 → (device) key not found: reload
[TRACE] 07:36:58.737 store.go:](device reload) - 0s
[DEBUG] 07:36:58.737 store.go:]:135 → (session) key not found: CONFIG
[TRACE] 07:36:58.737 store.go:](session CONFIG) - 0s
[DEBUG] 07:36:58.737 gob.go:Get:37 → no cached config found
[TRACE] 07:36:58.737 load.go:Load() - 0s
[TRACE] 07:36:58.737 gob.go:Get() - 0s
[TRACE] 07:36:58.737 terminal.go:Shell() - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[TRACE] 07:36:58.737 terminal_windows.go:Root() - 0s
[TRACE] 07:36:58.737 terminal.go:Shell() - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[TRACE] 07:36:58.737 terminal.go:StatusCodes() - 0s
[TRACE] 07:36:58.737 terminal_windows.go:IsWsl() - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.737 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.737 terminal_windows.go:IsWsl() - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[TRACE] 07:36:58.737 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.737 terminal.go:User:236 → anonuser
[TRACE] 07:36:58.737 terminal.go:User() - 0s
[DEBUG] 07:36:58.737 terminal.go:Host:253 → WS42066
[TRACE] 07:36:58.737 terminal.go:Host() - 0s
[TRACE] 07:36:58.737 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.737 terminal.go:Getenv:64 → NO DATA
[TRACE] 07:36:58.737 terminal.go:Getenv(SHLVL) - 0s
[TRACE] 07:36:58.737 terminal.go:Shell() - 0s
[DEBUG] 07:36:58.737 writer.go:Init:107 → terminal program: Windows Terminal
[DEBUG] 07:36:58.737 writer.go:Init:108 → terminal shell: pwsh
[DEBUG] 07:36:58.737 terminal.go:Getenv:64 → NO DATA
[TRACE] 07:36:58.737 terminal.go:Getenv(OMP_CACHE_DISABLED) - 0s
[DEBUG] 07:36:58.737 store.go:]:135 → (device) key not found: accent_color
[TRACE] 07:36:58.737 store.go:](device accent_color) - 0s
[DEBUG] 07:36:58.737 terminal_windows.go:WindowsRegistryKeyValue:198 → ColorizationColor(DWORD): 0xC4660F1E
[TRACE] 07:36:58.737 terminal_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 07:36:58.737 colors_windows.go:GetAccentColor() - 0s
[TRACE] 07:36:58.737 colors.go:SetAccentColor() - 0s
[DEBUG] 07:36:58.737 terminal.go:Getenv:64 → NO DATA
[TRACE] 07:36:58.737 terminal.go:Getenv(POSH_FORCE_RENDER) - 0s
[TRACE] 07:36:58.737 terminal.go:Shell() - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[TRACE] 07:36:58.737 terminal.go:Shell() - 0s
[DEBUG] 07:36:58.737 terminal.go:Getenv:64 → 8
[TRACE] 07:36:58.737 terminal.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 07:36:58.737 terminal.go:Getenv:64 → 1
[TRACE] 07:36:58.737 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[TRACE] 07:36:58.737 terminal.go:Flags() - 0s
[TRACE] 07:36:58.738 terminal.go:Flags() - 0s
[TRACE] 07:36:58.738 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.738 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.738 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.738 segment.go:Execute:108 → segment: Status
[DEBUG] 07:36:58.738 store.go:]:135 → (session) key not found: toggle_cache
[TRACE] 07:36:58.738 store.go:](session toggle_cache) - 0s
[DEBUG] 07:36:58.738 segment.go:Execute:108 → segment: Session
[DEBUG] 07:36:58.738 segment.go:isToggled:229 → no toggles found
[DEBUG] 07:36:58.738 store.go:]:135 → (session) key not found: toggle_cache
[TRACE] 07:36:58.738 store.go:](session toggle_cache) - 0s
[TRACE] 07:36:58.738 terminal.go:StatusCodes() - 0s
[DEBUG] 07:36:58.738 segment.go:isToggled:229 → no toggles found
[DEBUG] 07:36:58.738 terminal.go:Getenv:64 → NO DATA
[DEBUG] 07:36:58.738 properties.go:GetString:46 → status_template: {{ .Code }}
[TRACE] 07:36:58.738 terminal.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 07:36:58.738 terminal.go:Getenv:64 → NO DATA
[TRACE] 07:36:58.738 terminal.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 07:36:58.738 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.738 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.738 segment.go:Execute:108 → segment: Path
[DEBUG] 07:36:58.738 store.go:]:135 → (session) key not found: toggle_cache
[TRACE] 07:36:58.738 store.go:](session toggle_cache) - 0s
[DEBUG] 07:36:58.738 segment.go:isToggled:229 → no toggles found
[DEBUG] 07:36:58.738 properties.go:GetBool:40 → display_cygpath: false
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[TRACE] 07:36:58.738 separator.go:Separator() - 0s
[TRACE] 07:36:58.738 terminal.go:Shell() - 0s
[TRACE] 07:36:58.738 terminal.go:Flags() - 0s
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.738 text.go:patchTemplate:149 → {{ if .Data.SSHSession }} {{ end }}{{ .UserName }}
[DEBUG] 07:36:58.738 properties.go:GetBool:40 → mapped_locations_enabled: true
[DEBUG] 07:36:58.738 properties.go:GetString:46 → windows_registry_icon:
[DEBUG] 07:36:58.738 properties.go:GetString:46 → windows_registry_icon:
[DEBUG] 07:36:58.738 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.738 separator.go:Separator() - 0s
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.738 properties.go:GetString:46 → home_icon: ~
[DEBUG] 07:36:58.738 properties.go:GetKeyValueMap:64 → mapped_locations: map[]
[TRACE] 07:36:58.738 separator.go:Separator() - 0s
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[TRACE] 07:36:58.738 separator.go:Separator() - 0s
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[TRACE] 07:36:58.738 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.738 properties.go:GetStringArray:70 → cycle: []
[DEBUG] 07:36:58.738 properties.go:GetString:46 → folder_separator_template:
[DEBUG] 07:36:58.738 properties.go:GetString:46 → folder_separator_icon: \
[DEBUG] 07:36:58.738 properties.go:GetBool:40 → cycle_folder_separator: false
[DEBUG] 07:36:58.738 properties.go:GetString:46 → folder_format: %s
[DEBUG] 07:36:58.738 properties.go:GetString:46 → edge_format: %s
[DEBUG] 07:36:58.738 properties.go:GetString:46 → left_format: %s
[DEBUG] 07:36:58.738 properties.go:GetString:46 → right_format: %s
[TRACE] 07:36:58.738 terminal.go:Flags() - 0s
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[TRACE] 07:36:58.738 terminal.go:StackCount() - 0s
[TRACE] 07:36:58.738 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.738 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.738 text.go:patchTemplate:149 → {{ .Code }}
[DEBUG] 07:36:58.738 properties.go:GetBool:40 → always_enabled: true
[TRACE] 07:36:58.738 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.738 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.738 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.738 segment.go:Execute:108 → segment: Root
[DEBUG] 07:36:58.738 segment.go:Execute:108 → segment: Git
[DEBUG] 07:36:58.739 store.go:]:135 → (session) key not found: toggle_cache
[DEBUG] 07:36:58.738 store.go:]:135 → (session) key not found: toggle_cache
[TRACE] 07:36:58.739 store.go:](session toggle_cache) - 0s
[DEBUG] 07:36:58.739 segment.go:isToggled:229 → no toggles found
[TRACE] 07:36:58.739 store.go:](session toggle_cache) - 556.7µs
[DEBUG] 07:36:58.739 segment.go:isToggled:229 → no toggles found
[TRACE] 07:36:58.739 terminal_windows.go:Root() - 0s
[DEBUG] 07:36:58.739 terminal.go:ResolveSymlink:195 → C:\Users\anonuser
[TRACE] 07:36:58.739 terminal.go:ResolveSymlink(C:\Users\anonuser) - 0s
[DEBUG] 07:36:58.739 win32_windows.go:isWriteable:259 → not current user or in group
[DEBUG] 07:36:58.739 win32_windows.go:isWriteable:259 → not current user or in group
[DEBUG] 07:36:58.739 win32_windows.go:isWriteable:263 → current user is member of S-1-5-21-1989816002-3693179747-3463170027-369247
[DEBUG] 07:36:58.739 win32_windows.go:isWriteable:271 ↓
WRITE_DAC
WRITE_OWNER
SYNCHRONIZE
DELETE
READ_CONTROL
[DEBUG] 07:36:58.739 win32_windows.go:isWriteable:273 → user has write access
[TRACE] 07:36:58.739 terminal_windows.go:DirIsWritable() - 1.0971ms
[DEBUG] 07:36:58.739 text.go:patchTemplate:149 → {{ path .Data.Path .Data.Location }}
[ERROR] 07:36:58.739 terminal.go:HasParentFilePath:464 → GetFileAttributesEx .git: Das System kann die angegebene Datei nicht finden.
[TRACE] 07:36:58.739 terminal.go:HasParentFilePath(.git) - 540.4µs
[DEBUG] 07:36:58.739 text.go:patchTemplate:149 → {{ if gt .Code 0 }}{{ else }}{{ end }}
[DEBUG] 07:36:58.739 text.go:patchTemplate:149 → {{ if gt .Code 0 }}p:red{{ end }}
[DEBUG] 07:36:58.739 text.go:patchTemplate:149 → {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 07:36:58.739 terminal.go:Shell() - 0s
[TRACE] 07:36:58.739 terminal.go:Flags() - 0s
[TRACE] 07:36:58.739 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.739 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.739 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.739 home.go:12 → C:\Users\anonuser
[DEBUG] 07:36:58.739 segment.go:Execute:108 → segment: Node
[TRACE] 07:36:58.739 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.739 store.go:]:135 → (session) key not found: toggle_cache
[DEBUG] 07:36:58.739 segment.go:Execute:108 → segment: Time
[TRACE] 07:36:58.739 store.go:](session toggle_cache) - 0s
[DEBUG] 07:36:58.739 segment.go:isToggled:229 → no toggles found
[DEBUG] 07:36:58.739 store.go:]:135 → (session) key not found: toggle_cache
[TRACE] 07:36:58.739 store.go:](session toggle_cache) - 0s
[DEBUG] 07:36:58.739 segment.go:isToggled:229 → no toggles found
[DEBUG] 07:36:58.739 properties.go:GetString:46 → time_format: 15:04:05
[TRACE] 07:36:58.739 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.739 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.739 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.739 segment.go:Execute:108 → segment: Go
[DEBUG] 07:36:58.739 store.go:]:135 → (session) key not found: toggle_cache
[TRACE] 07:36:58.739 store.go:](session toggle_cache) - 0s
[DEBUG] 07:36:58.739 segment.go:isToggled:229 → no toggles found
[DEBUG] 07:36:58.739 properties.go:GetStringArray:70 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 07:36:58.739 properties.go:GetStringArray:70 → folders: []
[DEBUG] 07:36:58.739 properties.go:GetBool:40 → home_enabled: false
[DEBUG] 07:36:58.739 properties.go:GetStringArray:70 → extensions: [*.go go.mod go.sum go.work go.work.sum]
[DEBUG] 07:36:58.739 properties.go:GetStringArray:70 → folders: []
[DEBUG] 07:36:58.739 home.go:12 → C:\Users\anonuser
[DEBUG] 07:36:58.739 properties.go:GetBool:40 → home_enabled: false
[TRACE] 07:36:58.739 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.739 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.739 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.739 segment.go:Execute:108 → segment: Shell
[DEBUG] 07:36:58.739 store.go:]:135 → (session) key not found: toggle_cache
[TRACE] 07:36:58.739 store.go:](session toggle_cache) - 0s
[DEBUG] 07:36:58.739 segment.go:isToggled:229 → no toggles found
[DEBUG] 07:36:58.739 properties.go:GetKeyValueMap:64 → mapped_shell_names: map[]
[TRACE] 07:36:58.739 terminal.go:Shell() - 0s
[TRACE] 07:36:58.739 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.739 home.go:12 → C:\Users\anonuser
[TRACE] 07:36:58.740 terminal.go:GOOS() - 0s
[DEBUG] 07:36:58.740 segment.go:Execute:108 → segment: Python
[DEBUG] 07:36:58.740 store.go:]:135 → (session) key not found: toggle_cache
[TRACE] 07:36:58.740 store.go:](session toggle_cache) - 0s
[DEBUG] 07:36:58.740 segment.go:isToggled:229 → no toggles found
[DEBUG] 07:36:58.740 properties.go:GetString:46 → display_mode: files
[DEBUG] 07:36:58.740 properties.go:GetStringArray:70 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 07:36:58.740 properties.go:GetStringArray:70 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 07:36:58.740 properties.go:GetBool:40 → home_enabled: false
[DEBUG] 07:36:58.740 home.go:12 → C:\Users\anonuser
[DEBUG] 07:36:58.740 text.go:patchTemplate:149 → in <p:blue><b>{{ .Data.Name }}</b></>
[DEBUG] 07:36:58.740 text.go:patchTemplate:149 → at <p:blue><b>{{ .Data.CurrentDate | date "15:04:05" }}</b></>
[TRACE] 07:36:58.740 terminal.go:Shell() - 0s
[TRACE] 07:36:58.741 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.741 text.go:patchTemplate:149 → {{ .Shell }} in {{ .Folder }}
[TRACE] 07:36:58.741 terminal.go:Shell() - 0s
[DEBUG] 07:36:58.741 terminal_windows.go:TerminalWidth:82 → terminal width: 90
[TRACE] 07:36:58.741 terminal_windows.go:TerminalWidth() - 0s
[TRACE] 07:36:58.741 terminal.go:Flags() - 0s
[TRACE] 07:36:58.741 terminal.go:Flags() - 0s
[DEBUG] 07:36:58.741 store.go:]:171 → (session) setting entry: template_cache - &{map[Path:0xc0000dc540 Session:0xc00012a0f0 Shell:0xc000338050 Status:0xc000250910 Time:0xc0002510e0] map[] ~ anonuser anonuser WSXX0XX 5.1.26100.6584 pwsh C:\Users\anonuser windows 26.23.6 1 0 0 0 false false} with duration: 24h
[TRACE] 07:36:58.741 store.go:](session template_cache) - 0s
[DEBUG] 07:36:58.758 file_map_windows.go:bytes:210 → empty string
[TRACE] 07:36:58.761 store.go:close(session) - 20.2732ms
[DEBUG] 07:36:58.761 store.go:close:102 → (device) not persisting
[TRACE] 07:36:58.761 store.go:close(device) - 0s
[TRACE] 07:36:58.761 path.go:Path() - 0s |
Replies: 2 comments 23 replies
|
@albuntu148 for some reason in the logs you can see that |
|
@JanDeDobbeleer sorry, that was a typo on my side in the "Microsoft.PowerShell_profile.ps1". Did a lot of tests and forgot the $ for the last call. Corrected this, but still. The theme is definitely there: 19092025T105007.997-pwsh-print-primary.log |



@albuntu148 new version is building. Should be available soon.